Commit 69d77ccd4fd3fe94f0ac13466b53cafdd94967f5
Merge remote-tracking branch 'origin/master_cj_zq' into master_cj_zq
Showing
6 changed files
with
38 additions
and
1 deletions
| @@ -29,6 +29,14 @@ public class QueryReceiptLedgerInfoBo extends BaseBo<ReceiptLedgerInfo> { | @@ -29,6 +29,14 @@ public class QueryReceiptLedgerInfoBo extends BaseBo<ReceiptLedgerInfo> { | ||
| 29 | @ApiModelProperty("ID") | 29 | @ApiModelProperty("ID") |
| 30 | private String id; | 30 | private String id; |
| 31 | 31 | ||
| 32 | + /** | ||
| 33 | + * 类型 | ||
| 34 | + * 外贸: OUTSIDE | ||
| 35 | + * 内贸:INSIDE | ||
| 36 | + */ | ||
| 37 | + @ApiModelProperty("类型") | ||
| 38 | + private String type; | ||
| 39 | + | ||
| 32 | @ApiModelProperty("父ID") | 40 | @ApiModelProperty("父ID") |
| 33 | private String parentId; | 41 | private String parentId; |
| 34 | 42 |
| @@ -30,6 +30,13 @@ public class ReceiptLedgerInfo extends BaseEntity implements BaseDto { | @@ -30,6 +30,13 @@ public class ReceiptLedgerInfo extends BaseEntity implements BaseDto { | ||
| 30 | private String id; | 30 | private String id; |
| 31 | 31 | ||
| 32 | /** | 32 | /** |
| 33 | + * 类型 | ||
| 34 | + * 外贸: OUTSIDE | ||
| 35 | + * 内贸:INSIDE | ||
| 36 | + */ | ||
| 37 | + private String type; | ||
| 38 | + | ||
| 39 | + /** | ||
| 33 | * 父ID | 40 | * 父ID |
| 34 | */ | 41 | */ |
| 35 | private String parentId; | 42 | private String parentId; |
| @@ -238,6 +238,7 @@ public class ReceiptLedgerInfoServiceImpl extends BaseMpServiceImpl<ReceiptLedge | @@ -238,6 +238,7 @@ public class ReceiptLedgerInfoServiceImpl extends BaseMpServiceImpl<ReceiptLedge | ||
| 238 | String userId = SecurityUtil.getCurrentUser().getId(); | 238 | String userId = SecurityUtil.getCurrentUser().getId(); |
| 239 | ReceiptLedgerInfo data = new ReceiptLedgerInfo(); | 239 | ReceiptLedgerInfo data = new ReceiptLedgerInfo(); |
| 240 | data.setId(IdUtil.getId()); | 240 | data.setId(IdUtil.getId()); |
| 241 | + data.setType(vo.getType()); | ||
| 241 | data.setParentId(vo.getId()); | 242 | data.setParentId(vo.getId()); |
| 242 | data.setCustomerShortId(vo.getCustomerShortId()); | 243 | data.setCustomerShortId(vo.getCustomerShortId()); |
| 243 | data.setQuota(vo.getQuota()); | 244 | data.setQuota(vo.getQuota()); |
| @@ -207,7 +207,13 @@ public class ShipmentsPlanDetailServiceImpl extends BaseMpServiceImpl<ShipmentsP | @@ -207,7 +207,13 @@ public class ShipmentsPlanDetailServiceImpl extends BaseMpServiceImpl<ShipmentsP | ||
| 207 | existOrderSpecIds.addAll(orderSpecIds); | 207 | existOrderSpecIds.addAll(orderSpecIds); |
| 208 | } | 208 | } |
| 209 | } | 209 | } |
| 210 | - vo.setOrderSpecIds(existOrderSpecIds); | 210 | + List<String> orderSpecIds = vo.getOrderSpecIds(); |
| 211 | + if (CollectionUtils.isNotEmpty(orderSpecIds)) { | ||
| 212 | + orderSpecIds.addAll(existOrderSpecIds); | ||
| 213 | + } else { | ||
| 214 | + orderSpecIds = existOrderSpecIds; | ||
| 215 | + } | ||
| 216 | + vo.setOrderSpecIds(orderSpecIds); | ||
| 211 | // 业务员做权限控制 | 217 | // 业务员做权限控制 |
| 212 | List<String> userIds = new ArrayList<>(); | 218 | List<String> userIds = new ArrayList<>(); |
| 213 | String currentUserId = SecurityUtil.getCurrentUser().getId(); | 219 | String currentUserId = SecurityUtil.getCurrentUser().getId(); |
| @@ -18,6 +18,14 @@ public class QueryReceiptLedgerInfoVo extends PageVo implements BaseVo, Serializ | @@ -18,6 +18,14 @@ public class QueryReceiptLedgerInfoVo extends PageVo implements BaseVo, Serializ | ||
| 18 | private String id; | 18 | private String id; |
| 19 | 19 | ||
| 20 | /** | 20 | /** |
| 21 | + * 类型 | ||
| 22 | + * 外贸: OUTSIDE | ||
| 23 | + * 内贸:INSIDE | ||
| 24 | + */ | ||
| 25 | + @ApiModelProperty("类型") | ||
| 26 | + private String type; | ||
| 27 | + | ||
| 28 | + /** | ||
| 21 | * 客户简称ID | 29 | * 客户简称ID |
| 22 | */ | 30 | */ |
| 23 | @ApiModelProperty("客户简称ID") | 31 | @ApiModelProperty("客户简称ID") |
| @@ -4,6 +4,7 @@ | @@ -4,6 +4,7 @@ | ||
| 4 | 4 | ||
| 5 | <resultMap id="ReceiptLedgerInfo" type="com.lframework.xingyun.sc.entity.ReceiptLedgerInfo"> | 5 | <resultMap id="ReceiptLedgerInfo" type="com.lframework.xingyun.sc.entity.ReceiptLedgerInfo"> |
| 6 | <id column="id" property="id"/> | 6 | <id column="id" property="id"/> |
| 7 | + <result column="type" property="type"/> | ||
| 7 | <result column="parent_id" property="parentId"/> | 8 | <result column="parent_id" property="parentId"/> |
| 8 | <result column="customer_short_id" property="customerShortId"/> | 9 | <result column="customer_short_id" property="customerShortId"/> |
| 9 | <result column="customer_short_name" property="customerShortName"/> | 10 | <result column="customer_short_name" property="customerShortName"/> |
| @@ -45,6 +46,7 @@ | @@ -45,6 +46,7 @@ | ||
| 45 | <sql id="ReceiptLedgerInfo_sql"> | 46 | <sql id="ReceiptLedgerInfo_sql"> |
| 46 | SELECT | 47 | SELECT |
| 47 | tb.id, | 48 | tb.id, |
| 49 | + tb.type, | ||
| 48 | tb.parent_id, | 50 | tb.parent_id, |
| 49 | tb.customer_short_id, | 51 | tb.customer_short_id, |
| 50 | cs.short_name as customer_short_name, | 52 | cs.short_name as customer_short_name, |
| @@ -96,6 +98,9 @@ | @@ -96,6 +98,9 @@ | ||
| 96 | <if test="vo.id != null and vo.id != ''"> | 98 | <if test="vo.id != null and vo.id != ''"> |
| 97 | AND tb.id = #{vo.id} | 99 | AND tb.id = #{vo.id} |
| 98 | </if> | 100 | </if> |
| 101 | + <if test="vo.type != null and vo.type != ''"> | ||
| 102 | + AND tb.type = #{vo.type} | ||
| 103 | + </if> | ||
| 99 | <if test="vo.customerShortId != null and vo.customerShortId != ''"> | 104 | <if test="vo.customerShortId != null and vo.customerShortId != ''"> |
| 100 | AND tb.customer_short_id = #{vo.customerShortId} | 105 | AND tb.customer_short_id = #{vo.customerShortId} |
| 101 | </if> | 106 | </if> |
| @@ -137,6 +142,7 @@ | @@ -137,6 +142,7 @@ | ||
| 137 | <insert id="batchAdd"> | 142 | <insert id="batchAdd"> |
| 138 | INSERT INTO receipt_ledger_info ( | 143 | INSERT INTO receipt_ledger_info ( |
| 139 | id, | 144 | id, |
| 145 | + type, | ||
| 140 | parent_id, | 146 | parent_id, |
| 141 | customer_short_id, | 147 | customer_short_id, |
| 142 | quota, | 148 | quota, |
| @@ -169,6 +175,7 @@ | @@ -169,6 +175,7 @@ | ||
| 169 | <foreach collection="list" item="item" separator=","> | 175 | <foreach collection="list" item="item" separator=","> |
| 170 | ( | 176 | ( |
| 171 | #{item.id}, | 177 | #{item.id}, |
| 178 | + #{item.type}, | ||
| 172 | #{item.parentId}, | 179 | #{item.parentId}, |
| 173 | #{item.customerShortId}, | 180 | #{item.customerShortId}, |
| 174 | #{item.quota}, | 181 | #{item.quota}, |