Commit 2c625c90 authored by 谢希宇's avatar 谢希宇

Aidea product update by Strive Date 2020-10-23

parent a6125e31
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
<result column="consult_id" property="consultId"/> <result column="consult_id" property="consultId"/>
<result column="user_name" property="userName"/> <result column="user_name" property="userName"/>
<result column="number_id" property="numberId"/> <result column="number_id" property="numberId"/>
<result column="benebit_id" property="benebitId"/>
<result column="sex" property="sex"/> <result column="sex" property="sex"/>
<result column="iphone" property="iPhone"/> <result column="iphone" property="iPhone"/>
<result column="past_records" property="pastRecords"/> <result column="past_records" property="pastRecords"/>
...@@ -62,11 +61,10 @@ ...@@ -62,11 +61,10 @@
<sql id="sqlColumns"> <sql id="sqlColumns">
a.id, a.id,
a.consult_id, a.consult_id,
a.user_name, CONVERT(AES_DECRYPT(a.user_name,'aideakey') USING UTF8),
a.number_id, CONVERT(AES_DECRYPT(a.number_id,'aideakey') USING UTF8),
a.benebit_id,
a.sex, a.sex,
a.iphone, CONVERT(AES_DECRYPT(a.iphone,'aideakey') USING UTF8),
a.past_records, a.past_records,
a.prescription, a.prescription,
a.doctor_id, a.doctor_id,
...@@ -101,14 +99,13 @@ ...@@ -101,14 +99,13 @@
) )
values values
( (
#{id, jdbcType=BIGINT}, #{id, jdbcType=BIGINT}
#{consultId, jdbcType=VARCHAR}, #{consultId, jdbcType=VARCHAR},
#{userName, jdbcType=VARCHAR}, AES_ENCRYPT(#{userName, jdbcType=VARBINARY},'aideakey'),
#{numberId, jdbcType=VARCHAR}, AES_ENCRYPT(#{numberId, jdbcType=VARBINARY},'aideakey'),
now(), now(),
#{sex, jdbcType=BIGINT}, #{sex, jdbcType=BIGINT},
#{iPhone, jdbcType=VARCHAR}, AES_ENCRYPT(#{iPhone, jdbcType=VARBINARY},'aideakey'),
#{pastRecords, jdbcType=VARCHAR}, #{pastRecords, jdbcType=VARCHAR},
#{Prescription, jdbcType=VARCHAR}, #{Prescription, jdbcType=VARCHAR},
#{doctorId, jdbcType=BIGINT}, #{doctorId, jdbcType=BIGINT},
...@@ -158,9 +155,8 @@ ...@@ -158,9 +155,8 @@
FROM t_aidea_consult_sheet a FROM t_aidea_consult_sheet a
LEFT JOIN t_qyuser b ON b.id = a.doctor_id LEFT JOIN t_qyuser b ON b.id = a.doctor_id
LEFT JOIN t_qyuser c ON c.id = a.customer_id LEFT JOIN t_qyuser c ON c.id = a.customer_id
LEFT JOIN `user` u ON u.userid = b.id
<include refid="sqlWhere"/> <include refid="sqlWhere"/>
<if test="id!=null"> ${id} = b.id </if> <if test="id!=null">and (a.doctor_id = ${id} or a.customer_id =${id} ) </if>
<if test="sort!=null">ORDER BY ${sort.param} ${sort.type}</if> <if test="sort!=null">ORDER BY ${sort.param} ${sort.type}</if>
<if test="limit>0">limit #{offset},#{limit}</if> <if test="limit>0">limit #{offset},#{limit}</if>
</select> </select>
...@@ -176,19 +172,18 @@ ...@@ -176,19 +172,18 @@
consult_id = #{consultId, jdbcType=VARCHAR}, consult_id = #{consultId, jdbcType=VARCHAR},
</if> </if>
<if test="userName != null"> <if test="userName != null">
user_name = #{userName, jdbcType=VARCHAR},
user_name = AES_ENCRYPT( #{userName, jdbcType=VARBINARY},'aideakey'),
</if> </if>
<if test="numberId != null"> <if test="numberId != null">
number_id = #{numberId, jdbcType=VARCHAR}, number_id = AES_ENCRYPT(#{numberId, jdbcType=VARBINARY},'aideakey'),
</if>
<if test="benebitId != null">
benebit_id = #{benebitId, jdbcType=TIMESTAMP},
</if> </if>
<if test="sex != null"> <if test="sex != null">
sex = #{sex, jdbcType=BIGINT}, sex = #{sex, jdbcType=BIGINT},
</if> </if>
<if test="iPhone != null"> <if test="iPhone != null">
iphone = #{iPhone, jdbcType=VARCHAR}, iphone = AES_ENCRYPT(#{iPhone, jdbcType=VARBINARY},'aideakey'),
</if> </if>
<if test="pastRecords != null"> <if test="pastRecords != null">
past_records = #{pastRecords, jdbcType=VARCHAR}, past_records = #{pastRecords, jdbcType=VARCHAR},
...@@ -254,6 +249,28 @@ ...@@ -254,6 +249,28 @@
<update id="delete" parameterType="java.lang.Long"> <update id="delete" parameterType="java.lang.Long">
update t_aidea_consult_sheet set del_flag=1 where id=#{id,jdbcType=BIGINT} update t_aidea_consult_sheet set del_flag=1 where id=#{id,jdbcType=BIGINT}
</update> </update>
<update id="updateDate" >
update t_aidea_consult_sheet
<set>
<if test="status !=null">
status = #{status},
</if>
<if test="description !=null">
description = #{description}
</if>
</set>
where consult_id = #{consultId}
</update>
<update id="updateStatus">
update t_aidea_consult_sheet
<set>
<if test="status !=null">
status = #{status}
</if>
</set>
where consult_id = #{consultId}
</update>
</mapper> </mapper>
...@@ -11,4 +11,10 @@ import com.cftech.core.generic.GenericDao; ...@@ -11,4 +11,10 @@ import com.cftech.core.generic.GenericDao;
*/ */
public interface WaybillMapper extends GenericDao<Waybill> { public interface WaybillMapper extends GenericDao<Waybill> {
/**
* 查询物流数据(联查)
* @param id
* @return
*/
Waybill fetchByWayBillId(String id);
} }
\ No newline at end of file
...@@ -30,6 +30,6 @@ public class WaybillServiceImpl extends GenericServiceImpl<Waybill> implements W ...@@ -30,6 +30,6 @@ public class WaybillServiceImpl extends GenericServiceImpl<Waybill> implements W
@Override @Override
public Waybill fetchByWayBillId(String id) { public Waybill fetchByWayBillId(String id) {
return getGenericMapper().fetchByWayBillId(id); return waybillMapper.fetchByWayBillId(id);
} }
} }
\ No newline at end of file
...@@ -79,4 +79,11 @@ public interface GenericService<T> { ...@@ -79,4 +79,11 @@ public interface GenericService<T> {
*/ */
int count(Conds conds); int count(Conds conds);
/**
* 根据删除对象
*
* @param id
* @return
*/
boolean delete(Serializable id);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment