|
@@ -1,5 +1,6 @@
|
|
package com.dayou.service.impl;
|
|
package com.dayou.service.impl;
|
|
|
|
|
|
|
|
+import com.dayou.dto.AssetsProductionDetailDTO;
|
|
import com.dayou.dto.TaskRecordDTO;
|
|
import com.dayou.dto.TaskRecordDTO;
|
|
import com.dayou.entity.AssetsProduction;
|
|
import com.dayou.entity.AssetsProduction;
|
|
import com.dayou.mapper.AssetsProductionMapper;
|
|
import com.dayou.mapper.AssetsProductionMapper;
|
|
@@ -93,6 +94,7 @@ public class AssetsProductionServiceImpl extends ServiceImpl<AssetsProductionMap
|
|
|
|
|
|
/**
|
|
/**
|
|
* 根据业务id获取已选择产品
|
|
* 根据业务id获取已选择产品
|
|
|
|
+ *
|
|
* @param businessId 资产业务id
|
|
* @param businessId 资产业务id
|
|
* @return AssetsProduction
|
|
* @return AssetsProduction
|
|
*/
|
|
*/
|
|
@@ -100,4 +102,25 @@ public class AssetsProductionServiceImpl extends ServiceImpl<AssetsProductionMap
|
|
public AssetsProduction getProductionByBusinessId(Long businessId) {
|
|
public AssetsProduction getProductionByBusinessId(Long businessId) {
|
|
return assetsProductionMapper.getProductionByBusinessId(businessId);
|
|
return assetsProductionMapper.getProductionByBusinessId(businessId);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 撰写产品信息
|
|
|
|
+ *
|
|
|
|
+ * @param assetsProduction 产品信息字段
|
|
|
|
+ * @return Boolean
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public Boolean writeAssetsProduction(AssetsProduction assetsProduction) {
|
|
|
|
+ return assetsProductionMapper.writeAssetsProduction(assetsProduction);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 根据业务id与产品号获取资产产品详细信息
|
|
|
|
+ * @param dto 查询dto
|
|
|
|
+ * @return AssetsProduction
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public AssetsProduction getAssetsProductionDetail(AssetsProductionDetailDTO dto) {
|
|
|
|
+ return this.getOne(new LambdaQueryWrapper<AssetsProduction>().eq(AssetsProduction::getBusinessId, dto.getBusinessId()).eq(AssetsProduction::getProductionNo, dto.getProductionNo()));
|
|
|
|
+ }
|
|
}
|
|
}
|