|
|
@@ -17,6 +17,7 @@ import cn.com.taiji.core.manager.cache.RedisCacheManager; |
|
|
|
import cn.com.taiji.core.repo.jpa.user.StaffRepo; |
|
|
|
import cn.com.taiji.managew.repo.jpa.request.IssueProductPageRequest; |
|
|
|
import cn.hutool.core.collection.CollectionUtil; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.context.ApplicationContext; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
@@ -122,9 +123,12 @@ public class ProductManagerImpl extends RedisCacheManager implements ProductMana |
|
|
|
} |
|
|
|
issueProduct.setAmount(amount); |
|
|
|
} |
|
|
|
issueProduct.setExtensionTool(String.join(",", req.getExtensionTool())); |
|
|
|
issueProduct.setVanType(String.join(",", req.getVanType())); |
|
|
|
issueProduct.setVehiclePalce(String.join(",", req.getVehiclePalce())); |
|
|
|
issueProduct.setExtensionTool(String.join(StrUtil.COMMA, req.getExtensionTool())); |
|
|
|
issueProduct.setVanType(String.join(StrUtil.COMMA, req.getVanType())); |
|
|
|
issueProduct.setVehicleType(String.join(StrUtil.COMMA, req.getVehicleType())); |
|
|
|
if (CollectionUtil.isNotEmpty(req.getVehiclePalce())){ |
|
|
|
issueProduct.setVehiclePalce(String.join(StrUtil.COMMA, req.getVehiclePalce())); |
|
|
|
} |
|
|
|
Staff staff = staffRepo.findByStaffId(req.getStaffId()); |
|
|
|
issueProduct.setOperateUserId(staff.getOpenId()); |
|
|
|
issueProduct.setOperateUserName(staff.getStaffName()); |
|
|
@@ -265,9 +269,12 @@ public class ProductManagerImpl extends RedisCacheManager implements ProductMana |
|
|
|
issueProductPayRepo.deleteByfr(FeeCategory.AFTER, issueProduct.getReleaseId()); |
|
|
|
} |
|
|
|
copyProperties(req, issueProduct); |
|
|
|
issueProduct.setExtensionTool(String.join(",", req.getExtensionTool())); |
|
|
|
issueProduct.setVanType(String.join(",", req.getVanType())); |
|
|
|
issueProduct.setVehiclePalce(String.join(",", req.getVehiclePalce())); |
|
|
|
issueProduct.setExtensionTool(String.join(StrUtil.COMMA, req.getExtensionTool())); |
|
|
|
issueProduct.setVanType(String.join(StrUtil.COMMA, req.getVanType())); |
|
|
|
issueProduct.setVehicleType(String.join(StrUtil.COMMA, req.getVehicleType())); |
|
|
|
if (CollectionUtil.isNotEmpty(req.getVehiclePalce())) { |
|
|
|
issueProduct.setVehiclePalce(String.join(StrUtil.COMMA, req.getVehiclePalce())); |
|
|
|
} |
|
|
|
Staff staff = staffRepo.findByStaffId(req.getStaffId()); |
|
|
|
issueProduct.setOperateUserId(staff.getOpenId()); |
|
|
|
issueProduct.setOperateUserName(staff.getStaffName()); |