Showing
10 changed files
with
295 additions
and
5 deletions
| ... | ... | @@ -145,4 +145,13 @@ public class CustomerShortServiceImpl extends BaseMpServiceImpl<CustomerShortMap |
| 145 | 145 | |
| 146 | 146 | return getBaseMapper().selectList(queryWrapper); |
| 147 | 147 | } |
| 148 | + | |
| 149 | + @Override | |
| 150 | + public List<CustomerShort> getByShortName(String shortName) { | |
| 151 | + if (StringUtils.isBlank(shortName)) { | |
| 152 | + return null; | |
| 153 | + } | |
| 154 | + | |
| 155 | + return getBaseMapper().getByShortName(shortName); | |
| 156 | + } | |
| 148 | 157 | } | ... | ... |
| ... | ... | @@ -32,4 +32,6 @@ public interface CustomerShortMapper extends BaseMapper<CustomerShort> { |
| 32 | 32 | */ |
| 33 | 33 | List<CustomerShort> queryShortName(@Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize, |
| 34 | 34 | @Param("vo") QueryCustomerShortVo vo); |
| 35 | + | |
| 36 | + List<CustomerShort> getByShortName(@Param("shortName") String shortName); | |
| 35 | 37 | } | ... | ... |
| ... | ... | @@ -81,4 +81,12 @@ public interface CustomerShortService extends BaseMpService<CustomerShort> { |
| 81 | 81 | * @return List<CustomerShort> |
| 82 | 82 | */ |
| 83 | 83 | List<CustomerShort> listByCustomerId(List<String> customerIds); |
| 84 | + | |
| 85 | + /** | |
| 86 | + * 根据客户简称查询 | |
| 87 | + * | |
| 88 | + * @param shortName 客户简称 | |
| 89 | + * @return CustomerShortList | |
| 90 | + */ | |
| 91 | + List<CustomerShort> getByShortName(String shortName); | |
| 84 | 92 | } | ... | ... |
| ... | ... | @@ -96,4 +96,13 @@ |
| 96 | 96 | ORDER BY create_time desc |
| 97 | 97 | LIMIT #{pageIndex}, #{pageSize} |
| 98 | 98 | </select> |
| 99 | + | |
| 100 | + <select id="getByShortName" resultMap="CustomerShort"> | |
| 101 | + <include refid="CustomerShort_sql"/> | |
| 102 | + <where> | |
| 103 | + <if test="shortName != null and shortName != ''"> | |
| 104 | + AND tb.short_name = #{shortName} | |
| 105 | + </if> | |
| 106 | + </where> | |
| 107 | + </select> | |
| 99 | 108 | </mapper> | ... | ... |
| ... | ... | @@ -142,6 +142,12 @@ public class GetFundCoordinationBo extends BaseBo<FundCoordination> { |
| 142 | 142 | private String requestedShipmentQuantity; |
| 143 | 143 | |
| 144 | 144 | /** |
| 145 | + * 待交付订单量(吨) | |
| 146 | + */ | |
| 147 | + @ApiModelProperty("待交付订单量") | |
| 148 | + private String pendingDeliveryOrderQuantity; | |
| 149 | + | |
| 150 | + /** | |
| 145 | 151 | * 贸易类型:外贸: OUTSIDE 内贸:INSIDE |
| 146 | 152 | */ |
| 147 | 153 | @ApiModelProperty("贸易类型") |
| ... | ... | @@ -177,6 +183,169 @@ public class GetFundCoordinationBo extends BaseBo<FundCoordination> { |
| 177 | 183 | @ApiModelProperty("订货单位主键集合") |
| 178 | 184 | private List<String> orderingUnitIds; |
| 179 | 185 | |
| 186 | + | |
| 187 | + /** | |
| 188 | + * 办事处内勤ID | |
| 189 | + */ | |
| 190 | + @ApiModelProperty("办事处内勤ID") | |
| 191 | + private String officeClerk; | |
| 192 | + | |
| 193 | + /** | |
| 194 | + * 办事处内勤 | |
| 195 | + */ | |
| 196 | + @ApiModelProperty("办事处内勤") | |
| 197 | + private String officeClerkName; | |
| 198 | + | |
| 199 | + /** | |
| 200 | + * 办事处内勤审核意见 | |
| 201 | + */ | |
| 202 | + @ApiModelProperty("办事处内勤审核意见") | |
| 203 | + private String officeClerkOpinion; | |
| 204 | + | |
| 205 | + /** | |
| 206 | + * 办事处主管ID | |
| 207 | + */ | |
| 208 | + @ApiModelProperty("办事处主管ID") | |
| 209 | + private String officeSupervisor; | |
| 210 | + | |
| 211 | + /** | |
| 212 | + * 办事处主管 | |
| 213 | + */ | |
| 214 | + @ApiModelProperty("办事处主管") | |
| 215 | + private String officeSupervisorName; | |
| 216 | + | |
| 217 | + /** | |
| 218 | + * 办事处主管审核意见 | |
| 219 | + */ | |
| 220 | + @ApiModelProperty("办事处主管审核意见") | |
| 221 | + private String officeSupervisorOpinion; | |
| 222 | + | |
| 223 | + /** | |
| 224 | + * 营销部分管ID | |
| 225 | + */ | |
| 226 | + @ApiModelProperty("营销部分管ID") | |
| 227 | + private String marketingDeputyDirector; | |
| 228 | + | |
| 229 | + /** | |
| 230 | + * 营销部分管 | |
| 231 | + */ | |
| 232 | + @ApiModelProperty("营销部分管") | |
| 233 | + private String marketingDeputyDirectorName; | |
| 234 | + | |
| 235 | + /** | |
| 236 | + * 营销部分管审核意见 | |
| 237 | + */ | |
| 238 | + @ApiModelProperty("营销部分管审核意见") | |
| 239 | + private String marketingDeputyDirectorOpinion; | |
| 240 | + | |
| 241 | + /** | |
| 242 | + * 运作科资金管理岗ID | |
| 243 | + */ | |
| 244 | + @ApiModelProperty("运作科资金管理岗ID") | |
| 245 | + private String fundManagementOperationDepartment; | |
| 246 | + | |
| 247 | + /** | |
| 248 | + * 运作科资金管理岗 | |
| 249 | + */ | |
| 250 | + @ApiModelProperty("运作科资金管理岗") | |
| 251 | + private String fundManagementOperationDepartmentName; | |
| 252 | + | |
| 253 | + /** | |
| 254 | + * 运作科资金管理岗审核意见 | |
| 255 | + */ | |
| 256 | + @ApiModelProperty("运作科资金管理岗审核意见") | |
| 257 | + private String fundManagementOperationDepartmentOpinion; | |
| 258 | + | |
| 259 | + /** | |
| 260 | + * 运作科主管ID | |
| 261 | + */ | |
| 262 | + @ApiModelProperty("运作科主管ID") | |
| 263 | + private String operationsDepartmentSupervisor; | |
| 264 | + | |
| 265 | + /** | |
| 266 | + * 运作科主管 | |
| 267 | + */ | |
| 268 | + @ApiModelProperty("运作科主管") | |
| 269 | + private String operationsDepartmentSupervisorName; | |
| 270 | + | |
| 271 | + /** | |
| 272 | + * 运作科主管审核意见 | |
| 273 | + */ | |
| 274 | + @ApiModelProperty("运作科主管审核意见") | |
| 275 | + private String operationsDepartmentSupervisorOpinion; | |
| 276 | + | |
| 277 | + /** | |
| 278 | + * 营销部主管ID | |
| 279 | + */ | |
| 280 | + @ApiModelProperty("营销部主管ID") | |
| 281 | + private String marketingDepartmentManager; | |
| 282 | + | |
| 283 | + /** | |
| 284 | + * 营销部主管 | |
| 285 | + */ | |
| 286 | + @ApiModelProperty("营销部主管") | |
| 287 | + private String marketingDepartmentManagerName; | |
| 288 | + | |
| 289 | + /** | |
| 290 | + * 营销部主管审核意见 | |
| 291 | + */ | |
| 292 | + @ApiModelProperty("营销部主管审核意见") | |
| 293 | + private String marketingDepartmentManagerOpinion; | |
| 294 | + | |
| 295 | + /** | |
| 296 | + * 财务部副经理ID | |
| 297 | + */ | |
| 298 | + @ApiModelProperty("财务部副经理ID") | |
| 299 | + private String financeDepartment; | |
| 300 | + | |
| 301 | + /** | |
| 302 | + * 财务部副经理 | |
| 303 | + */ | |
| 304 | + @ApiModelProperty("财务部副经理") | |
| 305 | + private String financeDepartmentName; | |
| 306 | + | |
| 307 | + /** | |
| 308 | + * 财务部副经理审核意见 | |
| 309 | + */ | |
| 310 | + @ApiModelProperty("财务部副经理审核意见") | |
| 311 | + private String financeDepartmentOpinion; | |
| 312 | + | |
| 313 | + /** | |
| 314 | + * 营销中心主管ID | |
| 315 | + */ | |
| 316 | + @ApiModelProperty("营销中心主管ID") | |
| 317 | + private String marketingCenterSupervisor; | |
| 318 | + | |
| 319 | + /** | |
| 320 | + * 营销中心主管姓名 | |
| 321 | + */ | |
| 322 | + @ApiModelProperty("营销中心主管姓名") | |
| 323 | + private String marketingCenterSupervisorName; | |
| 324 | + | |
| 325 | + /** | |
| 326 | + * 营销中心主管审核意见 | |
| 327 | + */ | |
| 328 | + @ApiModelProperty("营销中心主管审核意见") | |
| 329 | + private String marketingCenterSupervisorOpinion; | |
| 330 | + | |
| 331 | + /** | |
| 332 | + * 总经理ID | |
| 333 | + */ | |
| 334 | + @ApiModelProperty("总经理ID") | |
| 335 | + private String generalManager; | |
| 336 | + | |
| 337 | + /** | |
| 338 | + * 总经理姓名 | |
| 339 | + */ | |
| 340 | + @ApiModelProperty("总经理姓名") | |
| 341 | + private String generalManagerName; | |
| 342 | + | |
| 343 | + /** | |
| 344 | + * 总经理审核意见 | |
| 345 | + */ | |
| 346 | + @ApiModelProperty("总经理审核意见") | |
| 347 | + private String generalManagerOpinion; | |
| 348 | + | |
| 180 | 349 | public GetFundCoordinationBo() { |
| 181 | 350 | |
| 182 | 351 | } | ... | ... |
xingyun-sc/src/main/java/com/lframework/xingyun/sc/controller/ledger/FundCoordinationController.java
| 1 | 1 | package com.lframework.xingyun.sc.controller.ledger; |
| 2 | 2 | |
| 3 | +import cn.hutool.core.io.resource.ClassPathResource; | |
| 3 | 4 | import com.lframework.starter.bpm.dto.FlowTaskDto; |
| 4 | 5 | import com.lframework.starter.bpm.mappers.FlowTaskWrapperMapper; |
| 5 | 6 | import com.lframework.starter.bpm.vo.flow.task.QueryTodoTaskListVo; |
| 6 | 7 | import com.lframework.starter.web.core.annotations.security.HasPermission; |
| 7 | 8 | import com.lframework.starter.web.core.components.security.SecurityUtil; |
| 8 | 9 | import com.lframework.starter.web.core.controller.DefaultBaseController; |
| 10 | +import com.lframework.starter.web.core.utils.ApplicationUtil; | |
| 9 | 11 | import com.lframework.starter.web.core.utils.PageResultUtil; |
| 10 | 12 | import com.lframework.starter.web.core.components.resp.PageResult; |
| 11 | 13 | import com.lframework.starter.web.core.components.resp.InvokeResult; |
| 12 | 14 | import javax.annotation.Resource; |
| 15 | +import javax.servlet.http.HttpServletResponse; | |
| 13 | 16 | import javax.validation.constraints.NotBlank; |
| 14 | 17 | import com.lframework.starter.web.inner.bo.system.user.QuerySysUserBo; |
| 15 | 18 | import com.lframework.starter.web.inner.entity.SysDataDicItem; |
| ... | ... | @@ -19,12 +22,17 @@ import com.lframework.starter.web.inner.service.system.SysDataDicItemService; |
| 19 | 22 | import com.lframework.starter.web.inner.service.system.SysDeptService; |
| 20 | 23 | import com.lframework.starter.web.inner.service.system.SysUserService; |
| 21 | 24 | import com.lframework.starter.web.inner.vo.system.user.QuerySysUserVo; |
| 25 | +import com.lframework.xingyun.basedata.entity.CustomerShort; | |
| 26 | +import com.lframework.xingyun.basedata.service.customer.CustomerShortService; | |
| 22 | 27 | import com.lframework.xingyun.sc.bo.ledger.fund.GetFundCoordinationBo; |
| 23 | 28 | import com.lframework.xingyun.sc.bo.ledger.fund.QueryFundCoordinationBo; |
| 24 | 29 | import com.lframework.xingyun.sc.bo.order.GetPurchaseOrderInfoBo; |
| 25 | 30 | import com.lframework.xingyun.sc.entity.*; |
| 31 | +import com.lframework.xingyun.sc.service.customer.CustomerCreditService; | |
| 26 | 32 | import com.lframework.xingyun.sc.service.ledger.*; |
| 27 | 33 | import com.lframework.xingyun.sc.service.order.PurchaseOrderInfoService; |
| 34 | +import com.lframework.xingyun.sc.utils.ExcelUtil; | |
| 35 | +import com.lframework.xingyun.sc.utils.LatexFormulaExcelExporterUtil; | |
| 28 | 36 | import com.lframework.xingyun.sc.vo.ledger.detail.QueryFundOrderingUnitDetailVo; |
| 29 | 37 | import com.lframework.xingyun.sc.vo.ledger.fund.CreateFundCoordinationVo; |
| 30 | 38 | import com.lframework.xingyun.sc.vo.ledger.fund.QueryFundCoordinationVo; |
| ... | ... | @@ -39,20 +47,28 @@ import com.lframework.starter.common.exceptions.impl.DefaultClientException; |
| 39 | 47 | import io.swagger.annotations.ApiOperation; |
| 40 | 48 | import com.lframework.starter.common.utils.CollectionUtil; |
| 41 | 49 | import io.swagger.annotations.Api; |
| 50 | +import lombok.extern.slf4j.Slf4j; | |
| 42 | 51 | import org.apache.commons.collections.CollectionUtils; |
| 52 | +import org.apache.commons.lang3.StringUtils; | |
| 53 | +import org.apache.poi.ss.usermodel.*; | |
| 54 | +import org.apache.poi.ss.util.CellRangeAddress; | |
| 55 | +import org.apache.poi.util.IOUtils; | |
| 56 | +import org.apache.poi.xssf.usermodel.XSSFWorkbook; | |
| 43 | 57 | import org.springframework.web.bind.annotation.DeleteMapping; |
| 44 | 58 | import org.springframework.beans.factory.annotation.Autowired; |
| 45 | 59 | import org.springframework.validation.annotation.Validated; |
| 46 | 60 | import org.springframework.web.bind.annotation.*; |
| 47 | 61 | import javax.validation.Valid; |
| 62 | +import java.io.FileNotFoundException; | |
| 63 | +import java.io.IOException; | |
| 64 | +import java.io.InputStream; | |
| 48 | 65 | import java.math.BigDecimal; |
| 49 | 66 | import java.math.RoundingMode; |
| 67 | +import java.net.URLEncoder; | |
| 50 | 68 | import java.time.LocalDate; |
| 69 | +import java.time.format.DateTimeFormatter; | |
| 51 | 70 | import java.time.temporal.ChronoUnit; |
| 52 | -import java.util.ArrayList; | |
| 53 | -import java.util.Comparator; | |
| 54 | -import java.util.List; | |
| 55 | -import java.util.Map; | |
| 71 | +import java.util.*; | |
| 56 | 72 | import java.util.stream.Collectors; |
| 57 | 73 | |
| 58 | 74 | /** |
| ... | ... | @@ -60,6 +76,7 @@ import java.util.stream.Collectors; |
| 60 | 76 | * |
| 61 | 77 | */ |
| 62 | 78 | @Api(tags = "资金协调手续") |
| 79 | +@Slf4j | |
| 63 | 80 | @Validated |
| 64 | 81 | @RestController |
| 65 | 82 | @RequestMapping("/fundCoordination") |
| ... | ... | @@ -87,6 +104,10 @@ public class FundCoordinationController extends DefaultBaseController { |
| 87 | 104 | private PendingDeliveryOrderService pendingDeliveryOrderService; |
| 88 | 105 | @Resource |
| 89 | 106 | private FlowTaskWrapperMapper flowTaskWrapperMapper; |
| 107 | + @Resource | |
| 108 | + private CustomerShortService customerShortService; | |
| 109 | + @Resource | |
| 110 | + private CustomerCreditService customerCreditService; | |
| 90 | 111 | |
| 91 | 112 | /** |
| 92 | 113 | * 查询列表 |
| ... | ... | @@ -191,11 +212,60 @@ public class FundCoordinationController extends DefaultBaseController { |
| 191 | 212 | return InvokeResultBuilder.success(CollectionUtil.emptyList()); |
| 192 | 213 | } |
| 193 | 214 | List<ReceiptLedgerInfo> query = receiptLedgerInfoService.queryByCustomerShortName(names.get(0)); |
| 215 | + GetFundCoordinationBo getFundCoordinationBo = new GetFundCoordinationBo(); | |
| 194 | 216 | if (CollectionUtil.isEmpty(query)) { |
| 217 | + List<CustomerShort> customerShortList = customerShortService.getByShortName(names.get(0)); | |
| 218 | + if (CollectionUtils.isNotEmpty(customerShortList)) { | |
| 219 | + List<GetFundCoordinationBo> data = new ArrayList<>(); | |
| 220 | + SysDataDicItem type = sysDataDicItemService.findByCode("ENTERPRISE_TYPE", customerShortList.get(0).getType()); | |
| 221 | + getFundCoordinationBo.setCustomerTypeName(type == null ? "" : type.getName()); | |
| 222 | + StringBuilder customerNameStr = new StringBuilder(); | |
| 223 | + //无限担保书 | |
| 224 | + StringBuilder unlimitedGuaranteeLetterStr = new StringBuilder(); | |
| 225 | + List<String> orderingUnitIds = new ArrayList<>(); | |
| 226 | + for (CustomerShort customerShort : customerShortList) { | |
| 227 | + customerNameStr.append(customerShort.getCustomerName()).append("、"); | |
| 228 | + orderingUnitIds.add(customerShort.getCustomerId()); | |
| 229 | + //无限担保书 | |
| 230 | + QueryUnlimitedGuaranteeLetterVo vo1 = new QueryUnlimitedGuaranteeLetterVo(); | |
| 231 | + vo1.setOrderingUnit(customerShort.getCustomerId()); | |
| 232 | + List<UnlimitedGuaranteeLetter> query1 = unlimitedGuaranteeLetterService.query(vo1); | |
| 233 | + if (CollectionUtil.isEmpty(query1)) { | |
| 234 | + unlimitedGuaranteeLetterStr.append("无").append(","); | |
| 235 | + } else { | |
| 236 | + unlimitedGuaranteeLetterStr.append("有").append(","); | |
| 237 | + } | |
| 238 | + } | |
| 239 | + //订货单位名称 | |
| 240 | + if (customerNameStr.length() > 0) { | |
| 241 | + customerNameStr.deleteCharAt(customerNameStr.length() - 1); | |
| 242 | + } | |
| 243 | + getFundCoordinationBo.setOrderingUnitName(customerNameStr.toString()); | |
| 244 | + //订货单位IDs | |
| 245 | + getFundCoordinationBo.setOrderingUnitIds(orderingUnitIds); | |
| 246 | + //无限担保书 | |
| 247 | + if (unlimitedGuaranteeLetterStr.length() > 0) { | |
| 248 | + unlimitedGuaranteeLetterStr.deleteCharAt(unlimitedGuaranteeLetterStr.length() - 1); | |
| 249 | + } | |
| 250 | + getFundCoordinationBo.setUnlimitedGuaranteeLetter(unlimitedGuaranteeLetterStr.toString()); | |
| 251 | + getFundCoordinationBo.setCustomerShortName(customerShortList.get(0).getShortName()); | |
| 252 | + //授信额度、结算期限 | |
| 253 | + CustomerCredit customerCredit = customerCreditService.getByCustomerId(customerShortList.get(0).getCustomerId()); | |
| 254 | + if (customerCredit != null) { | |
| 255 | + getFundCoordinationBo.setCreditLimit(customerCredit.getCompanyCreditLimit() == null ? "" | |
| 256 | + : customerCredit.getCompanyCreditLimit() + "万"); | |
| 257 | + getFundCoordinationBo.setSettlementPeriod(customerCredit.getCompanySettlementPeriod() == null ? "" | |
| 258 | + : customerCredit.getCompanySettlementPeriod()); | |
| 259 | + } | |
| 260 | + getFundCoordinationBo.setTotalAccountsReceivable("0"); | |
| 261 | + getFundCoordinationBo.setOverdueReceivables("0"); | |
| 262 | + getFundCoordinationBo.setAgreedInternalReceivables("0"); | |
| 263 | + data.add(getFundCoordinationBo); | |
| 264 | + return InvokeResultBuilder.success(data); | |
| 265 | + } | |
| 195 | 266 | return InvokeResultBuilder.success(CollectionUtil.emptyList()); |
| 196 | 267 | } |
| 197 | 268 | List<GetFundCoordinationBo> data = new ArrayList<>(); |
| 198 | - GetFundCoordinationBo getFundCoordinationBo = new GetFundCoordinationBo(); | |
| 199 | 269 | ReceiptLedgerInfo receiptLedgerInfo = query.get(0); |
| 200 | 270 | //客户类型 |
| 201 | 271 | getFundCoordinationBo.setCustomerType(receiptLedgerInfo.getCustomerType()); | ... | ... |
| ... | ... | @@ -140,6 +140,15 @@ public class FundCoordinationServiceImpl extends BaseMpServiceImpl<FundCoordinat |
| 140 | 140 | if (vo.getOrderQuantity() != null) { |
| 141 | 141 | data.setOrderQuantity(vo.getOrderQuantity()); |
| 142 | 142 | } |
| 143 | + if (!StringUtil.isBlank(vo.getTotalAccountsReceivable())) { | |
| 144 | + data.setTotalAccountsReceivable(vo.getTotalAccountsReceivable()); | |
| 145 | + } | |
| 146 | + if (!StringUtil.isBlank(vo.getOverdueReceivables())) { | |
| 147 | + data.setOverdueReceivables(vo.getOverdueReceivables()); | |
| 148 | + } | |
| 149 | + if (!StringUtil.isBlank(vo.getAgreedInternalReceivables())) { | |
| 150 | + data.setAgreedInternalReceivables(vo.getAgreedInternalReceivables()); | |
| 151 | + } | |
| 143 | 152 | if (!StringUtil.isBlank(vo.getRequirementSpecification())) { |
| 144 | 153 | data.setRequirementSpecification(vo.getRequirementSpecification()); |
| 145 | 154 | } | ... | ... |
| ... | ... | @@ -125,6 +125,7 @@ public class PendingDeliveryOrderServiceImpl extends BaseMpServiceImpl<PendingDe |
| 125 | 125 | for (CreatePendingDeliveryOrderVo vo : createPendingDeliveryOrderVoList) { |
| 126 | 126 | PendingDeliveryOrder pendingDeliveryOrder = new PendingDeliveryOrder(); |
| 127 | 127 | pendingDeliveryOrder.setId(IdUtil.getId()); |
| 128 | + pendingDeliveryOrder.setFundId(vo.getFundId()); | |
| 128 | 129 | pendingDeliveryOrder.setPurchaseOrderId(vo.getPurchaseOrderId()); |
| 129 | 130 | pendingDeliveryOrder.setTotalQuantity(vo.getTotalQuantity()); |
| 130 | 131 | pendingDeliveryOrder.setDispatchedQuantity(vo.getDispatchedQuantity()); | ... | ... |
| ... | ... | @@ -45,4 +45,11 @@ public class QueryFundCoordinationVo extends PageVo implements BaseVo, Serializa |
| 45 | 45 | @ApiModelProperty("审核状态") |
| 46 | 46 | private String status; |
| 47 | 47 | |
| 48 | + | |
| 49 | + /** | |
| 50 | + * 贸易类型:外贸: OUTSIDE 内贸:INSIDE | |
| 51 | + */ | |
| 52 | + @ApiModelProperty("贸易类型") | |
| 53 | + private String type; | |
| 54 | + | |
| 48 | 55 | } | ... | ... |
| ... | ... | @@ -21,6 +21,7 @@ |
| 21 | 21 | <result column="overdue_receivables" property="overdueReceivables"/> |
| 22 | 22 | <result column="agreed_internal_receivables" property="agreedInternalReceivables"/> |
| 23 | 23 | <result column="requirement_specification" property="requirementSpecification"/> |
| 24 | + <result column="requested_shipment_quantity" property="requestedShipmentQuantity"/> | |
| 24 | 25 | <result column="office_clerk" property="officeClerk"/> |
| 25 | 26 | <result column="office_clerk_opinion" property="officeClerkOpinion"/> |
| 26 | 27 | <result column="office_supervisor" property="officeSupervisor"/> |
| ... | ... | @@ -40,6 +41,7 @@ |
| 40 | 41 | <result column="general_manager" property="generalManager"/> |
| 41 | 42 | <result column="general_manager_opinion" property="generalManagerOpinion"/> |
| 42 | 43 | <result column="status" property="status"/> |
| 44 | + <result column="type" property="type"/> | |
| 43 | 45 | <result column="create_by_id" property="createById"/> |
| 44 | 46 | <result column="create_by" property="createBy"/> |
| 45 | 47 | <result column="update_by_id" property="updateById"/> |
| ... | ... | @@ -87,6 +89,7 @@ |
| 87 | 89 | tb.general_manager, |
| 88 | 90 | tb.general_manager_opinion, |
| 89 | 91 | tb.status, |
| 92 | + tb.type, | |
| 90 | 93 | tb.create_by_id, |
| 91 | 94 | tb.create_by, |
| 92 | 95 | tb.update_by_id, |
| ... | ... | @@ -117,6 +120,9 @@ |
| 117 | 120 | <if test="vo.status != null and vo.status != ''"> |
| 118 | 121 | AND tb.status = #{vo.status} |
| 119 | 122 | </if> |
| 123 | + <if test="vo.type != null and vo.type != ''"> | |
| 124 | + AND tb.type = #{vo.type} | |
| 125 | + </if> | |
| 120 | 126 | </where> |
| 121 | 127 | ORDER BY tb.create_time DESC |
| 122 | 128 | </select> | ... | ... |