Showing
5 changed files
with
5 additions
and
7 deletions
@@ -11,7 +11,7 @@ import com.yoho.order.model.AbnormalPackage; | @@ -11,7 +11,7 @@ import com.yoho.order.model.AbnormalPackage; | ||
11 | */ | 11 | */ |
12 | public interface AbnormalPackageMapper { | 12 | public interface AbnormalPackageMapper { |
13 | 13 | ||
14 | - AbnormalPackage selectByWaybillCode(@Param("sellerWaybillCode") String sellerWaybillCode); | 14 | + AbnormalPackage selectBySellerWaybillCode(@Param("sellerWaybillCode") String sellerWaybillCode); |
15 | 15 | ||
16 | int insert(AbnormalPackage abnormalPackage); | 16 | int insert(AbnormalPackage abnormalPackage); |
17 | 17 |
@@ -27,13 +27,13 @@ | @@ -27,13 +27,13 @@ | ||
27 | from abnormal_package where seller_waybillCode = #{sellerWaybillCode} | 27 | from abnormal_package where seller_waybillCode = #{sellerWaybillCode} |
28 | </select> | 28 | </select> |
29 | 29 | ||
30 | - <insert id="insert" parameterType="com.yoho.order.model.AbnormalExpress"> | 30 | + <insert id="insert" parameterType="com.yoho.order.model.AbnormalPackage"> |
31 | insert into abnormal_package(id, seller_waybillCode, is_del, create_time, operate_uid, update_time) | 31 | insert into abnormal_package(id, seller_waybillCode, is_del, create_time, operate_uid, update_time) |
32 | values (#{id}, #{sellerWaybillCode}, #{isDel}, #{createTime}, #{operateUid}, #{updateTime}) | 32 | values (#{id}, #{sellerWaybillCode}, #{isDel}, #{createTime}, #{operateUid}, #{updateTime}) |
33 | </insert> | 33 | </insert> |
34 | 34 | ||
35 | <update id="update"> | 35 | <update id="update"> |
36 | - update abnormal_package set operateUid=#{operateUid}, update_time=#{updateTime} | 36 | + update abnormal_package set operate_uid=#{operateUid}, update_time=#{updateTime}, is_del=0 |
37 | where seller_waybillCode = #{sellerWaybillCode} | 37 | where seller_waybillCode = #{sellerWaybillCode} |
38 | </update> | 38 | </update> |
39 | </mapper> | 39 | </mapper> |
@@ -518,7 +518,6 @@ public class BuyerOrderController { | @@ -518,7 +518,6 @@ public class BuyerOrderController { | ||
518 | }else { | 518 | }else { |
519 | return new ApiResponse.ApiResponseBuilder().code(500).message("添加异常包裹失败").build(); | 519 | return new ApiResponse.ApiResponseBuilder().code(500).message("添加异常包裹失败").build(); |
520 | } | 520 | } |
521 | - | ||
522 | } | 521 | } |
523 | 522 | ||
524 | } | 523 | } |
@@ -99,7 +99,6 @@ import com.yoho.ufo.order.request.SaveQualityCheckInfoRequest; | @@ -99,7 +99,6 @@ import com.yoho.ufo.order.request.SaveQualityCheckInfoRequest; | ||
99 | import com.yoho.ufo.order.service.IBuyerOrderService; | 99 | import com.yoho.ufo.order.service.IBuyerOrderService; |
100 | import com.yoho.ufo.service.impl.UfoServiceCaller; | 100 | import com.yoho.ufo.service.impl.UfoServiceCaller; |
101 | import com.yoho.ufo.service.impl.UserHelper; | 101 | import com.yoho.ufo.service.impl.UserHelper; |
102 | -import com.yoho.ufo.service.model.ApiResponse; | ||
103 | import com.yoho.ufo.service.model.PageResponseBO; | 102 | import com.yoho.ufo.service.model.PageResponseBO; |
104 | import com.yoho.ufo.util.DateUtil; | 103 | import com.yoho.ufo.util.DateUtil; |
105 | import com.yoho.ufo.util.ImagesConstant; | 104 | import com.yoho.ufo.util.ImagesConstant; |
@@ -2479,7 +2478,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | @@ -2479,7 +2478,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { | ||
2479 | @Override | 2478 | @Override |
2480 | public int addAbnormalPackage(String sellerWaybillCode) { | 2479 | public int addAbnormalPackage(String sellerWaybillCode) { |
2481 | //数据库已存在 | 2480 | //数据库已存在 |
2482 | - AbnormalPackage pkg = abnormalPackageMapper.selectByWaybillCode(sellerWaybillCode); | 2481 | + AbnormalPackage pkg = abnormalPackageMapper.selectBySellerWaybillCode(sellerWaybillCode); |
2483 | if(null != pkg) { | 2482 | if(null != pkg) { |
2484 | return abnormalPackageMapper.update(new UserHelper().getUserId(), DateUtil.getCurrentTimeSeconds(), sellerWaybillCode); | 2483 | return abnormalPackageMapper.update(new UserHelper().getUserId(), DateUtil.getCurrentTimeSeconds(), sellerWaybillCode); |
2485 | } | 2484 | } |
@@ -55,7 +55,7 @@ datasources: | @@ -55,7 +55,7 @@ datasources: | ||
55 | - com.yoho.order.dal.OrderCouponMapper | 55 | - com.yoho.order.dal.OrderCouponMapper |
56 | - com.yoho.order.dal.ManualInputPermissionMapper | 56 | - com.yoho.order.dal.ManualInputPermissionMapper |
57 | - com.yoho.order.dal.ExpressScreenshotsMapper | 57 | - com.yoho.order.dal.ExpressScreenshotsMapper |
58 | - - com.yoho.order.dal.AbnormalExpressMapper | 58 | + - com.yoho.order.dal.AbnormalPackageMapper |
59 | 59 | ||
60 | ufo_resource: | 60 | ufo_resource: |
61 | servers: | 61 | servers: |
-
Please register or login to post a comment