Commit 236b826400ac476f8295fd59771d4b2405586f57
Merge branch 'master_after0423' into master_after0506
# Conflicts: # xingyun-sc/src/main/java/com/lframework/xingyun/sc/impl/order/PurchaseOrderInfoServiceImpl.java # xingyun-sc/src/main/java/com/lframework/xingyun/sc/service/order/PurchaseOrderInfoService.java
Showing
11 changed files
with
78 additions
and
1 deletions
| ... | ... | @@ -1374,7 +1374,7 @@ public class ContractDistributorStandardController extends DefaultBaseController |
| 1374 | 1374 | if ("DEALER".equals(query.get(0).getEnterpriseType())) { |
| 1375 | 1375 | dataMap.put("remarks", ""); |
| 1376 | 1376 | } else if ("TERMINAL".equals(query.get(0).getEnterpriseType())) { |
| 1377 | - dataMap.put("remarks", "10、□贵司在我司的所有订货限于生产使用."); | |
| 1377 | + dataMap.put("remarks", "10、贵司在我司的所有订货限于生产使用."); | |
| 1378 | 1378 | } else { |
| 1379 | 1379 | dataMap.put("remarks", ""); |
| 1380 | 1380 | } | ... | ... |
xingyun-sc/src/main/java/com/lframework/xingyun/sc/controller/order/PurchaseOrderInfoController.java
| ... | ... | @@ -20,6 +20,7 @@ import com.lframework.starter.web.core.utils.PageResultUtil; |
| 20 | 20 | import com.lframework.starter.web.inner.entity.*; |
| 21 | 21 | import com.lframework.starter.web.inner.service.system.*; |
| 22 | 22 | import com.lframework.xingyun.sc.bo.order.GetPurchaseOrderInfoBo; |
| 23 | +import com.lframework.xingyun.sc.dto.ReviewerDto; | |
| 23 | 24 | import com.lframework.xingyun.sc.entity.ContractDistributorStandard; |
| 24 | 25 | import com.lframework.xingyun.sc.entity.PurchaseOrderInfo; |
| 25 | 26 | import com.lframework.xingyun.sc.entity.PurchaseOrderLine; |
| ... | ... | @@ -476,6 +477,11 @@ public class PurchaseOrderInfoController extends DefaultBaseController { |
| 476 | 477 | dataMap.put("priceListNo", data.getPriceListNo()); |
| 477 | 478 | // 生产工艺 |
| 478 | 479 | dataMap.put("productionProcess", data.getProductionProcess()); |
| 480 | + ReviewerDto reviewer = purchaseOrderInfoService.getReviewerById(id); | |
| 481 | + // 办事处内勤 | |
| 482 | + dataMap.put("officeClerk", reviewer.getOfficeClerk()); | |
| 483 | + // 办事处主管 | |
| 484 | + dataMap.put("officeSupervisor", reviewer.getOfficeSupervisor()); | |
| 479 | 485 | |
| 480 | 486 | processTemplate(workbook, dataMap); |
| 481 | 487 | ... | ... |
| 1 | +package com.lframework.xingyun.sc.dto; | |
| 2 | + | |
| 3 | +import com.lframework.starter.web.core.dto.BaseDto; | |
| 4 | +import lombok.Data; | |
| 5 | + | |
| 6 | +import java.io.Serializable; | |
| 7 | +import java.math.BigDecimal; | |
| 8 | + | |
| 9 | +@Data | |
| 10 | +public class ReviewerDto implements BaseDto, Serializable { | |
| 11 | + | |
| 12 | + private static final long serialVersionUID = 1L; | |
| 13 | + | |
| 14 | + /** | |
| 15 | + * ID | |
| 16 | + */ | |
| 17 | + private String id; | |
| 18 | + | |
| 19 | + /** | |
| 20 | + * 办事处内勤 | |
| 21 | + */ | |
| 22 | + private String officeClerk; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * 办事处主管 | |
| 26 | + */ | |
| 27 | + private String officeSupervisor; | |
| 28 | +} | ... | ... |
| ... | ... | @@ -9,9 +9,11 @@ import com.lframework.starter.web.core.utils.JsonUtil; |
| 9 | 9 | import com.lframework.starter.web.inner.entity.SysDataDicItem; |
| 10 | 10 | import com.lframework.starter.web.inner.service.system.SysDataDicItemService; |
| 11 | 11 | import com.lframework.xingyun.sc.bo.ledger.receipt.ReceiptLedgerReportDetail; |
| 12 | +import com.lframework.xingyun.sc.dto.ReviewerDto; | |
| 12 | 13 | import com.lframework.xingyun.sc.entity.PurchaseOrderInfo; |
| 13 | 14 | import com.lframework.xingyun.sc.entity.PurchaseOrderLine; |
| 14 | 15 | import com.lframework.xingyun.sc.excel.ledger.LedgerReportExportModel; |
| 16 | +import com.lframework.xingyun.sc.service.order.PurchaseOrderInfoService; | |
| 15 | 17 | import com.lframework.xingyun.sc.service.order.PurchaseOrderLineService; |
| 16 | 18 | import com.lframework.xingyun.sc.utils.ExcelUtil; |
| 17 | 19 | import com.lframework.xingyun.sc.utils.LatexFormulaExcelExporterUtil; |
| ... | ... | @@ -47,6 +49,8 @@ public class BusinessDataExportHandler implements ExportHandler { |
| 47 | 49 | |
| 48 | 50 | @Resource |
| 49 | 51 | private PurchaseOrderLineService purchaseOrderLineService; |
| 52 | + @Resource | |
| 53 | + private PurchaseOrderInfoService purchaseOrderInfoService; | |
| 50 | 54 | |
| 51 | 55 | |
| 52 | 56 | @Override |
| ... | ... | @@ -266,6 +270,11 @@ public class BusinessDataExportHandler implements ExportHandler { |
| 266 | 270 | dataMap.put("stockUpCompanyName", orderInfo.getStockUpCompanyName() == null ? "" : orderInfo.getStockUpCompanyName()); |
| 267 | 271 | dataMap.put("priceListNo", orderInfo.getPriceListNo()); |
| 268 | 272 | dataMap.put("productionProcess", orderInfo.getProductionProcess()); |
| 273 | + ReviewerDto reviewer = purchaseOrderInfoService.getReviewerById(orderInfo.getId()); | |
| 274 | + // 办事处内勤 | |
| 275 | + dataMap.put("officeClerk", reviewer.getOfficeClerk()); | |
| 276 | + // 办事处主管 | |
| 277 | + dataMap.put("officeSupervisor", reviewer.getOfficeSupervisor()); | |
| 269 | 278 | ExcelUtil.processTemplate(workbook, dataMap); |
| 270 | 279 | |
| 271 | 280 | String createTime = orderInfo.getCreateTime().format(dateTimeFormatter); | ... | ... |
| ... | ... | @@ -1282,6 +1282,7 @@ public class ContractDistributorStandardServiceImpl extends |
| 1282 | 1282 | contractDistributorLine.setUnitPrice(lineVo.getUnitPrice()); |
| 1283 | 1283 | contractDistributorLine.setAmountExcludingTax(lineVo.getAmountExcludingTax()); |
| 1284 | 1284 | contractDistributorLine.setTotalAmount(lineVo.getTotalAmount()); |
| 1285 | + contractDistributorLine.setDeliveryDate(lineVo.getDeliveryDate()); | |
| 1285 | 1286 | contractDistributorLineService.getBaseMapper().insert(contractDistributorLine); |
| 1286 | 1287 | } |
| 1287 | 1288 | ... | ... |
| ... | ... | @@ -28,6 +28,7 @@ import com.lframework.starter.web.inner.service.system.SysDataDicItemService; |
| 28 | 28 | import com.lframework.starter.web.inner.service.system.SysUserService; |
| 29 | 29 | import com.lframework.xingyun.basedata.entity.Workshop; |
| 30 | 30 | import com.lframework.xingyun.basedata.service.workshop.WorkshopService; |
| 31 | +import com.lframework.xingyun.sc.dto.ReviewerDto; | |
| 31 | 32 | import com.lframework.xingyun.sc.entity.*; |
| 32 | 33 | import com.lframework.xingyun.sc.enums.OrderSpecChangeStatus; |
| 33 | 34 | import com.lframework.xingyun.sc.mappers.PurchaseOrderInfoMapper; |
| ... | ... | @@ -925,6 +926,15 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde |
| 925 | 926 | if (CollectionUtils.isNotEmpty(proProcessList)) { |
| 926 | 927 | orderInfo.setProductionProcess(String.join("\n\n", proProcessList)); |
| 927 | 928 | } |
| 929 | + return String.join("\n", proProcessList); | |
| 930 | + } | |
| 931 | + | |
| 932 | + @Override | |
| 933 | + public ReviewerDto getReviewerById(String id) { | |
| 934 | + if (StringUtils.isBlank(id)) { | |
| 935 | + return new ReviewerDto(); | |
| 936 | + } | |
| 937 | + return getBaseMapper().getReviewerById(id); | |
| 928 | 938 | |
| 929 | 939 | return orderInfo; |
| 930 | 940 | } | ... | ... |
| ... | ... | @@ -4,6 +4,7 @@ import com.lframework.starter.web.core.annotations.permission.DataPermission; |
| 4 | 4 | import com.lframework.starter.web.core.annotations.permission.DataPermissions; |
| 5 | 5 | import com.lframework.starter.web.core.mapper.BaseMapper; |
| 6 | 6 | import com.lframework.starter.web.inner.components.permission.OrderDataPermissionDataPermissionType; |
| 7 | +import com.lframework.xingyun.sc.dto.ReviewerDto; | |
| 7 | 8 | import com.lframework.xingyun.sc.entity.PurchaseOrderInfo; |
| 8 | 9 | import com.lframework.xingyun.sc.vo.order.QueryPurchaseOrderInfoVo; |
| 9 | 10 | import org.apache.ibatis.annotations.Param; |
| ... | ... | @@ -53,4 +54,9 @@ public interface PurchaseOrderInfoMapper extends BaseMapper<PurchaseOrderInfo> { |
| 53 | 54 | * @return List<String> |
| 54 | 55 | */ |
| 55 | 56 | String queryHisProProcess(@Param("params") Map<String, Object> params); |
| 57 | + | |
| 58 | + /** | |
| 59 | + * 获取审核人 | |
| 60 | + */ | |
| 61 | + ReviewerDto getReviewerById(@Param("id") String id); | |
| 56 | 62 | } | ... | ... |
| ... | ... | @@ -2,13 +2,16 @@ package com.lframework.xingyun.sc.service.order; |
| 2 | 2 | |
| 3 | 3 | import com.lframework.starter.web.core.service.BaseMpService; |
| 4 | 4 | import com.lframework.starter.web.core.components.resp.PageResult; |
| 5 | +import com.lframework.xingyun.sc.dto.ReviewerDto; | |
| 5 | 6 | import com.lframework.xingyun.sc.entity.PurchaseOrderInfo; |
| 6 | 7 | import com.lframework.xingyun.sc.vo.order.CreatePurchaseOrderInfoVo; |
| 7 | 8 | import com.lframework.xingyun.sc.vo.order.QueryPurchaseOrderInfoVo; |
| 8 | 9 | import com.lframework.xingyun.sc.vo.order.UpdatePurchaseOrderInfoVo; |
| 10 | +import org.apache.ibatis.annotations.Param; | |
| 9 | 11 | |
| 10 | 12 | import java.math.BigDecimal; |
| 11 | 13 | import java.util.List; |
| 14 | +import java.util.Map; | |
| 12 | 15 | |
| 13 | 16 | /** |
| 14 | 17 | * 订货单表 Service |
| ... | ... | @@ -170,4 +173,9 @@ public interface PurchaseOrderInfoService extends BaseMpService<PurchaseOrderInf |
| 170 | 173 | * @return String |
| 171 | 174 | */ |
| 172 | 175 | PurchaseOrderInfo getHistoryProductionProcess(String orderId); |
| 176 | + | |
| 177 | + /** | |
| 178 | + * 获取审核人 | |
| 179 | + */ | |
| 180 | + ReviewerDto getReviewerById(@Param("id") String id); | |
| 173 | 181 | } | ... | ... |
| ... | ... | @@ -373,4 +373,13 @@ |
| 373 | 373 | order by ol.update_time desc |
| 374 | 374 | limit 1 |
| 375 | 375 | </select> |
| 376 | + | |
| 377 | + <select id="getReviewerById" resultType="com.lframework.xingyun.sc.dto.ReviewerDto"> | |
| 378 | + SELECT business_id, | |
| 379 | + JSON_UNQUOTE(JSON_EXTRACT(def_json, '$.nodeList[1].extMap.handleInfos[0].createBy')) AS officeClerk, | |
| 380 | + JSON_UNQUOTE(JSON_EXTRACT(def_json, '$.nodeList[2].extMap.handleInfos[0].createBy')) AS officeSupervisor | |
| 381 | + FROM flow_instance | |
| 382 | + WHERE business_id = #{id} | |
| 383 | + ORDER BY create_time DESC LIMIT 1 | |
| 384 | + </select> | |
| 376 | 385 | </mapper> | ... | ... |
No preview for this file type
No preview for this file type