Commit c442e028 authored by 谢希宇's avatar 谢希宇

Aidea product update by Strive Date 2020-10-23

parent e1a7deba
...@@ -96,6 +96,7 @@ ...@@ -96,6 +96,7 @@
<th>顺丰运单号</th> <th>顺丰运单号</th>
<th>会员名称</th> <th>会员名称</th>
<th>联系人</th> <th>联系人</th>
<th>创建时间</th>
<th>操作</th> <th>操作</th>
</tr> </tr>
</thead> </thead>
...@@ -215,7 +216,6 @@ ...@@ -215,7 +216,6 @@
'visible': false, 'visible': false,
'targets': [0] 'targets': [0]
}, },
{ {
"aTargets": [5], "aTargets": [5],
"mData": "createTime", "mData": "createTime",
......
...@@ -75,12 +75,12 @@ ...@@ -75,12 +75,12 @@
monthly_card, monthly_card,
express_type_id, express_type_id,
temperature_range, temperature_range,
AES_DECRYPT(contact, 'aideakey') contact, CONVERT( AES_DECRYPT(t.contact, 'aideakey') USING UTF8) contact,
AES_DECRYPT(mobile, 'aideakey') mobile, CONVERT( AES_DECRYPT(t.mobile, 'aideakey') USING UTF8) mobile,
AES_DECRYPT(province, 'aideakey') province, CONVERT( AES_DECRYPT(t.province, 'aideakey') USING UTF8) province,
AES_DECRYPT(city, 'aideakey') city, CONVERT( AES_DECRYPT(t.city, 'aideakey') USING UTF8) city,
AES_DECRYPT(county, 'aideakey') county, CONVERT( AES_DECRYPT(t.county, 'aideakey') USING UTF8) county,
AES_DECRYPT(address, 'aideakey') address, CONVERT( AES_DECRYPT(t.address, 'aideakey') USING UTF8) address,
address_id, address_id,
send_express_date, send_express_date,
accept_express_date, accept_express_date,
...@@ -149,12 +149,12 @@ ...@@ -149,12 +149,12 @@
#{monthlyCard, jdbcType=VARCHAR}, #{monthlyCard, jdbcType=VARCHAR},
#{expressTypeId, jdbcType=VARCHAR}, #{expressTypeId, jdbcType=VARCHAR},
#{temperatureRange, jdbcType=VARCHAR}, #{temperatureRange, jdbcType=VARCHAR},
AES_ENCRYPT(#{contact, jdbcType=BINARY}, 'aideakey'), AES_ENCRYPT(#{contact, jdbcType=VARBINARY}, 'aideakey'),
AES_ENCRYPT(#{mobile, jdbcType=BINARY}, 'aideakey'), AES_ENCRYPT(#{mobile, jdbcType=VARBINARY}, 'aideakey'),
AES_ENCRYPT(#{province, jdbcType=BINARY}, 'aideakey'), AES_ENCRYPT(#{province, jdbcType=VARBINARY}, 'aideakey'),
AES_ENCRYPT(#{city, jdbcType=BINARY}, 'aideakey'), AES_ENCRYPT(#{city, jdbcType=VARBINARY}, 'aideakey'),
AES_ENCRYPT(#{county, jdbcType=BINARY}, 'aideakey'), AES_ENCRYPT(#{county, jdbcType=VARBINARY}, 'aideakey'),
AES_ENCRYPT(#{address, jdbcType=BINARY}, 'aideakey'), AES_ENCRYPT(#{address, jdbcType=VARBINARY}, 'aideakey'),
#{addressId, jdbcType=VARCHAR}, #{addressId, jdbcType=VARCHAR},
now(), now(),
now(), now(),
...@@ -178,9 +178,8 @@ ...@@ -178,9 +178,8 @@
</select> </select>
<select id="count" parameterType="java.util.Map" resultType="java.lang.Integer"> <select id="count" parameterType="java.util.Map" resultType="java.lang.Integer">
SELECT COUNT(1) FROM t_aidea_waybill SELECT COUNT(1) FROM t_aidea_waybill t
<include refid="sqlWhere"/> <include refid="sqlWhere"/>
</select> </select>
<select id="fetchSearchByPage" parameterType="java.util.Map" resultType="com.cftech.waybill.model.Waybill"> <select id="fetchSearchByPage" parameterType="java.util.Map" resultType="com.cftech.waybill.model.Waybill">
...@@ -197,12 +196,12 @@ ...@@ -197,12 +196,12 @@
t.monthly_card monthlyCard, t.monthly_card monthlyCard,
t.express_type_id expressTypeId, t.express_type_id expressTypeId,
t.temperature_range temperatureRange, t.temperature_range temperatureRange,
AES_DECRYPT(t.contact, 'aideakey') contact, CONVERT( AES_DECRYPT(t.contact, 'aideakey') USING UTF8) contact,
AES_DECRYPT(t.mobile, 'aideakey') mobile, CONVERT( AES_DECRYPT(t.mobile, 'aideakey') USING UTF8) mobile,
AES_DECRYPT(t.province, 'aideakey') province, CONVERT( AES_DECRYPT(t.province, 'aideakey') USING UTF8) province,
AES_DECRYPT(t.city, 'aideakey') city, CONVERT( AES_DECRYPT(t.city, 'aideakey') USING UTF8) city,
AES_DECRYPT(t.county, 'aideakey') county, CONVERT( AES_DECRYPT(t.county, 'aideakey') USING UTF8) county,
AES_DECRYPT(t.address, 'aideakey') address, CONVERT( AES_DECRYPT(t.address, 'aideakey') USING UTF8) address,
t.address_id addressId, t.address_id addressId,
t.send_express_date sendExpressDate, t.send_express_date sendExpressDate,
t.accept_express_date acceptExpressDate, t.accept_express_date acceptExpressDate,
...@@ -223,7 +222,7 @@ ...@@ -223,7 +222,7 @@
AES_DECRYPT(m.name, 'aideakey') memberName AES_DECRYPT(m.name, 'aideakey') memberName
FROM t_aidea_waybill t FROM t_aidea_waybill t
LEFT JOIN t_order o ON t.order_id = o.id LEFT JOIN t_order o ON t.order_id = o.id
LEFT JOIN t_order_details od ON o.id = order_id LEFT JOIN t_order_details od ON o.id = od.order_id
LEFT JOIN wx_mp_member m ON t.member_id = m.id LEFT JOIN wx_mp_member m ON t.member_id = m.id
<include refid="sqlWhere"/> <include refid="sqlWhere"/>
<if test="sort!=null">ORDER BY ${sort.param} ${sort.type}</if> <if test="sort!=null">ORDER BY ${sort.param} ${sort.type}</if>
...@@ -270,22 +269,22 @@ ...@@ -270,22 +269,22 @@
temperature_range = #{temperatureRange, jdbcType=VARCHAR}, temperature_range = #{temperatureRange, jdbcType=VARCHAR},
</if> </if>
<if test="contact != null"> <if test="contact != null">
contact = AES_ENCRYPT(#{contact, jdbcType=BINARY}, 'aideakey'), contact = AES_ENCRYPT(#{contact, jdbcType=VARBINARY}, 'aideakey'),
</if> </if>
<if test="mobile != null"> <if test="mobile != null">
mobile = AES_ENCRYPT(#{mobile, jdbcType=BINARY}, 'aideakey'), mobile = AES_ENCRYPT(#{mobile, jdbcType=VARBINARY}, 'aideakey'),
</if> </if>
<if test="province != null"> <if test="province != null">
province = AES_ENCRYPT(#{province, jdbcType=BINARY}, 'aideakey'), province = AES_ENCRYPT(#{province, jdbcType=VARBINARY}, 'aideakey'),
</if> </if>
<if test="city != null"> <if test="city != null">
city = AES_ENCRYPT(#{city, jdbcType=BINARY}, 'aideakey'), city = AES_ENCRYPT(#{city, jdbcType=VARBINARY}, 'aideakey'),
</if> </if>
<if test="county != null"> <if test="county != null">
county = AES_ENCRYPT(#{county, jdbcType=BINARY}, 'aideakey'), county = AES_ENCRYPT(#{county, jdbcType=VARBINARY}, 'aideakey'),
</if> </if>
<if test="address != null"> <if test="address != null">
address = AES_ENCRYPT(#{address, jdbcType=BINARY}, 'aideakey'), address = AES_ENCRYPT(#{address, jdbcType=VARBINARY}, 'aideakey'),
</if> </if>
<if test="addressId != null"> <if test="addressId != null">
address_id = #{addressId, jdbcType=VARCHAR}, address_id = #{addressId, jdbcType=VARCHAR},
......
...@@ -103,9 +103,9 @@ public class WaybillController { ...@@ -103,9 +103,9 @@ public class WaybillController {
public JSONObject listData(int iDisplayStart, int iDisplayLength, Waybill waybill, HttpServletRequest request) { public JSONObject listData(int iDisplayStart, int iDisplayLength, Waybill waybill, HttpServletRequest request) {
Long accountsId = UserUtils.getmpaccounts(request); Long accountsId = UserUtils.getmpaccounts(request);
Conds conds = new Conds(); Conds conds = new Conds();
conds.equal("del_flag", Constants.DEL_FLAG_0); conds.equal("t.del_flag", Constants.DEL_FLAG_0);
conds.equal("accounts_id", accountsId); conds.equal("t.accounts_id", accountsId);
Sort sort = new Sort("create_time", OrderType.DESC); Sort sort = new Sort("t.create_time", OrderType.DESC);
List<Waybill> list = waybillService.fetchSearchByPage(conds, sort, iDisplayStart, iDisplayLength); List<Waybill> list = waybillService.fetchSearchByPage(conds, sort, iDisplayStart, iDisplayLength);
Integer counts = waybillService.count(conds); Integer counts = waybillService.count(conds);
......
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