Browse Source

调整单

develop
bobol 12 months ago
parent
commit
2ead4399fa
  1. 8
      lzbi-module/src/main/java/com/lzbi/asset/mapper/DcBaseAssetInfoMapper.java
  2. 32
      lzbi-module/src/main/java/com/lzbi/draft/controller/DcBusiTargetAdjustDayMasterController.java
  3. 105
      lzbi-module/src/main/java/com/lzbi/draft/controller/DcBusiTargetAdjustDaySubController.java
  4. 2
      lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetAdjustDayMasterDao.java
  5. 12
      lzbi-module/src/main/java/com/lzbi/draft/mapper/DcBusiTargetAdjustDaySubMapper.java
  6. 52
      lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiTargetAdjustDayMasterService.java
  7. 6
      lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiTargetAdjustDaySubService.java
  8. 8
      lzbi-module/src/main/java/com/lzbi/special/mapper/DcBaseWorkSpecialMapper.java
  9. 5
      lzbi-module/src/main/java/com/lzbi/targetFolder/mapper/DcBaseAssetTargetMapper.java
  10. 2
      lzbi-module/src/main/resources/mapper/asset/DcBusiTargetAdjustDayMasterMapper.xml
  11. 20
      lzbi-module/src/main/resources/mapper/asset/DcBusiTargetAdjustDaySubMapper.xml
  12. 4
      lzbi-module/src/main/resources/mapper/targetFolder/DcBaseAssetTargetMapper.xml

8
lzbi-module/src/main/java/com/lzbi/asset/mapper/DcBaseAssetInfoMapper.java

@ -28,14 +28,6 @@ public interface DcBaseAssetInfoMapper {
*/
public List<DcBaseAssetInfo> selectDcBaseAssetInfoList(DcBaseAssetInfo dcBaseAssetInfo);
/**
* 根据资产编码查询资产信息
*
* @param assetCode 资产编码
* @return 资产信息
*/
DcBaseAssetInfo selectDcBaseAssetInfoByAssetCode(String assetCode);
/**
* 新增资产信息
*

32
lzbi-module/src/main/java/com/lzbi/draft/controller/DcBusiTargetAdjustDayMasterController.java

@ -1,31 +1,23 @@
package com.lzbi.draft.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.lzbi.common.annotation.Log;
import com.lzbi.common.core.controller.BaseController;
import com.lzbi.common.core.domain.AjaxResult;
import com.lzbi.common.core.page.TableDataInfo;
import com.lzbi.common.enums.BusinessType;
import com.lzbi.common.utils.poi.ExcelUtil;
import com.lzbi.draft.domain.DcBusiTargetAdjustDayMasterDao;
import com.lzbi.draft.domain.DcBusiTargetAdjustDaySubDao;
import com.lzbi.draft.service.DcBusiTargetAdjustDayMasterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.lzbi.common.annotation.Log;
import com.lzbi.common.core.controller.BaseController;
import com.lzbi.common.core.domain.AjaxResult;
import com.lzbi.common.enums.BusinessType;
import com.lzbi.common.utils.poi.ExcelUtil;
import com.lzbi.common.core.page.TableDataInfo;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 资产指标调整单主()Controller
@ -94,7 +86,7 @@ public class DcBusiTargetAdjustDayMasterController extends BaseController
@PreAuthorize("@ss.hasPermi('asset:targetAdjustBill:edit')")
@Log(title = "资产指标调整单主(日)", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcBusiTargetAdjustDayMasterDao dcBusiTargetAdjustDayMasterDao)
public AjaxResult edit(@RequestBody DcBusiTargetAdjustDayMasterDao<DcBusiTargetAdjustDaySubDao> dcBusiTargetAdjustDayMasterDao)
{
return toAjax(dcBusiTargetAdjustDayMasterService.updateDcBusiTargetAdjustDayMasterDao(dcBusiTargetAdjustDayMasterDao));
}

105
lzbi-module/src/main/java/com/lzbi/draft/controller/DcBusiTargetAdjustDaySubController.java

@ -0,0 +1,105 @@
package com.lzbi.draft.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.lzbi.draft.domain.DcBusiTargetAdjustDaySubDao;
import com.lzbi.draft.service.DcBusiTargetAdjustDaySubService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.lzbi.common.annotation.Log;
import com.lzbi.common.core.controller.BaseController;
import com.lzbi.common.core.domain.AjaxResult;
import com.lzbi.common.enums.BusinessType;
import com.lzbi.common.utils.poi.ExcelUtil;
import com.lzbi.common.core.page.TableDataInfo;
/**
* 统计单元指标调整单子()Controller
*
* @author win
* @date 2023-12-05
*/
@RestController
@RequestMapping("/asset/target/adjust/sub")
public class DcBusiTargetAdjustDaySubController extends BaseController
{
@Autowired
private DcBusiTargetAdjustDaySubService dcBusiTargetAdjustDaySubService;
/**
* 查询统计单元指标调整单子()列表
*/
@PreAuthorize("@ss.hasPermi('asset:targetAdjustBill:list')")
@GetMapping("/list")
public TableDataInfo list(DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao)
{
startPage();
List<DcBusiTargetAdjustDaySubDao> list = dcBusiTargetAdjustDaySubService.selectDcBusiTargetAdjustDaySubDaoList(dcBusiTargetAdjustDaySubDao);
return getDataTable(list);
}
/**
* 导出统计单元指标调整单子()列表
*/
@PreAuthorize("@ss.hasPermi('asset:targetAdjustBill:export')")
@Log(title = "统计单元指标调整单子(日)", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao)
{
List<DcBusiTargetAdjustDaySubDao> list = dcBusiTargetAdjustDaySubService.selectDcBusiTargetAdjustDaySubDaoList(dcBusiTargetAdjustDaySubDao);
ExcelUtil<DcBusiTargetAdjustDaySubDao> util = new ExcelUtil<DcBusiTargetAdjustDaySubDao>(DcBusiTargetAdjustDaySubDao.class);
util.exportExcel(response, list, "统计单元指标调整单子(日)数据");
}
/**
* 获取统计单元指标调整单子()详细信息
*/
@PreAuthorize("@ss.hasPermi('asset:targetAdjustBill:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(dcBusiTargetAdjustDaySubService.selectDcBusiTargetAdjustDaySubDaoById(id));
}
// /**
// * 新增统计单元指标调整单子(日)
// */
// @PreAuthorize("@ss.hasPermi('asset:targetAdjustBill:add')")
// @Log(title = "统计单元指标调整单子(日)", businessType = BusinessType.INSERT)
// @PostMapping
// public AjaxResult add(@RequestBody DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao)
// {
// return toAjax(dcBusiTargetAdjustDaySubService.insertDcBusiTargetAdjustDaySubDao(dcBusiTargetAdjustDaySubDao));
// }
/**
* 修改统计单元指标调整单子()
*/
@PreAuthorize("@ss.hasPermi('asset:targetAdjustBill:edit')")
@Log(title = "统计单元指标调整单子(日)", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao)
{
return toAjax(dcBusiTargetAdjustDaySubService.updateDcBusiTargetAdjustDaySubDao(dcBusiTargetAdjustDaySubDao));
}
/**
* 删除统计单元指标调整单子()
*/
@PreAuthorize("@ss.hasPermi('asset:targetAdjustBill:remove')")
@Log(title = "统计单元指标调整单子(日)", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(dcBusiTargetAdjustDaySubService.deleteDcBusiTargetAdjustDaySubDaoByIds(ids));
}
}

2
lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetAdjustDayMasterDao.java

@ -37,7 +37,7 @@ public class DcBusiTargetAdjustDayMasterDao<T> extends BaseModuleEntity {
/**
* 人工
*/
public static final String CHECK_TYPE_ARTIFICIAL = "0";
public static final String CHECK_TYPE_ARTIFICIAL = "1";
private static final long serialVersionUID = 1L;

12
lzbi-module/src/main/java/com/lzbi/draft/mapper/DcBusiTargetAdjustDaySubMapper.java

@ -60,4 +60,16 @@ public interface DcBusiTargetAdjustDaySubMapper extends BaseMapper<DcBusiTargetA
* @return 结果
*/
public int deleteDcBusiTargetAdjustDaySubDaoByIds(Long[] ids);
/**
* 根据主单据编号删除
* @param billSerial 主单据编号
*/
void deleteDcBusiTargetAdjustDaySubDaoByBillNoMaster(String billSerial);
/**
* 根据主表ids删除
* @param ids 主表ids
*/
void deleteDcBusiTargetAdjustDaySubDaoByMasterIds(Long[] ids);
}

52
lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiTargetAdjustDayMasterService.java

@ -65,7 +65,12 @@ public class DcBusiTargetAdjustDayMasterService extends ServiceImpl<DcBusiTarget
* @return 资产指标调整单主()
*/
public DcBusiTargetAdjustDayMasterDao selectDcBusiTargetAdjustDayMasterDaoById(Long id) {
return baseMapper.selectDcBusiTargetAdjustDayMasterDaoById(id);
DcBusiTargetAdjustDayMasterDao dcBusiTargetAdjustDayMasterDao = baseMapper.selectDcBusiTargetAdjustDayMasterDaoById(id);
DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao = new DcBusiTargetAdjustDaySubDao();
dcBusiTargetAdjustDaySubDao.setBillNoMaster(dcBusiTargetAdjustDayMasterDao.getBillSerial());
List<DcBusiTargetAdjustDaySubDao> dcBusiTargetAdjustDaySubDaos = dcBusiTargetAdjustDaySubMapper.selectDcBusiTargetAdjustDaySubDaoList(dcBusiTargetAdjustDaySubDao);
dcBusiTargetAdjustDayMasterDao.setChildren(dcBusiTargetAdjustDaySubDaos);
return dcBusiTargetAdjustDayMasterDao;
}
/**
@ -98,12 +103,12 @@ public class DcBusiTargetAdjustDayMasterService extends ServiceImpl<DcBusiTarget
dcBusiTargetAdjustDayMasterDao.setOrganizeName(organize.getDeptName());
}
// 查询统计单元
DcBaseAssetInfo dcBaseAssetInfo = dcBaseAssetInfoMapper.selectDcBaseAssetInfoByAssetCode(assetCode);
DcBaseAssetInfo dcBaseAssetInfo = dcBaseAssetInfoMapper.selectDcBaseAssetInfoByCode(assetCode);
if (ObjectUtils.isNotEmpty(dcBaseAssetInfo)) {
dcBusiTargetAdjustDayMasterDao.setAssetName(dcBaseAssetInfo.getAssetName());
}
// 查询生产专业
DcBaseWorkSpecial dcBaseWorkSpecial = dcBaseWorkSpecialMapper.selectDcBaseWorkSpecialBySpecialCode(dcBusiTargetAdjustDayMasterDao.getFieldCode());
DcBaseWorkSpecial dcBaseWorkSpecial = dcBaseWorkSpecialMapper.selectDcBaseWorkSpecialByCode(dcBusiTargetAdjustDayMasterDao.getFieldCode());
if (ObjectUtils.isNotEmpty(dcBaseWorkSpecial)) {
dcBusiTargetAdjustDayMasterDao.setFieldName(dcBaseWorkSpecial.getSpecialName());
}
@ -126,8 +131,37 @@ public class DcBusiTargetAdjustDayMasterService extends ServiceImpl<DcBusiTarget
* @param dcBusiTargetAdjustDayMasterDao 资产指标调整单主()
* @return 结果
*/
@Transactional(rollbackFor = Exception.class)
public int updateDcBusiTargetAdjustDayMasterDao(DcBusiTargetAdjustDayMasterDao dcBusiTargetAdjustDayMasterDao) {
String assetCode = dcBusiTargetAdjustDayMasterDao.getAssetCode();
// 查询公司
SysDept company = sysDeptService.selectDeptById(dcBusiTargetAdjustDayMasterDao.getCompanyId());
if (ObjectUtils.isNotEmpty(company)) {
dcBusiTargetAdjustDayMasterDao.setCompanyName(company.getDeptName());
}
// 查询组织
SysDept organize = sysDeptService.selectDeptById(dcBusiTargetAdjustDayMasterDao.getOragnizeId());
if (ObjectUtils.isNotEmpty(organize)) {
dcBusiTargetAdjustDayMasterDao.setOrganizeName(organize.getDeptName());
}
// 查询统计单元
DcBaseAssetInfo dcBaseAssetInfo = dcBaseAssetInfoMapper.selectDcBaseAssetInfoByCode(assetCode);
if (ObjectUtils.isNotEmpty(dcBaseAssetInfo)) {
dcBusiTargetAdjustDayMasterDao.setAssetName(dcBaseAssetInfo.getAssetName());
}
// 查询生产专业
DcBaseWorkSpecial dcBaseWorkSpecial = dcBaseWorkSpecialMapper.selectDcBaseWorkSpecialByCode(dcBusiTargetAdjustDayMasterDao.getFieldCode());
if (ObjectUtils.isNotEmpty(dcBaseWorkSpecial)) {
dcBusiTargetAdjustDayMasterDao.setFieldName(dcBaseWorkSpecial.getSpecialName());
}
// 删除子表数据
dcBusiTargetAdjustDaySubMapper.deleteDcBusiTargetAdjustDaySubDaoByBillNoMaster(dcBusiTargetAdjustDayMasterDao.getBillSerial());
// 新增子表数据
List<DcBusiTargetAdjustDaySubDao> children = dcBusiTargetAdjustDayMasterDao.getChildren();
for (DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao : children) {
dcBusiTargetAdjustDaySubDao.setBillNoMaster(dcBusiTargetAdjustDayMasterDao.getBillSerial());
dcBusiTargetAdjustDaySubService.insertDcBusiTargetAdjustDaySubDao(dcBusiTargetAdjustDaySubDao, assetCode);
}
dcBusiTargetAdjustDayMasterDao.setUpdatedTime(DateUtils.getNowDate());
return baseMapper.updateDcBusiTargetAdjustDayMasterDao(dcBusiTargetAdjustDayMasterDao);
}
@ -138,8 +172,10 @@ public class DcBusiTargetAdjustDayMasterService extends ServiceImpl<DcBusiTarget
* @param ids 需要删除的资产指标调整单主()主键
* @return 结果
*/
@Transactional(rollbackFor = Exception.class)
public int deleteDcBusiTargetAdjustDayMasterDaoByIds(Long[] ids) {
// 删除子表数据
dcBusiTargetAdjustDaySubMapper.deleteDcBusiTargetAdjustDaySubDaoByMasterIds(ids);
return baseMapper.deleteDcBusiTargetAdjustDayMasterDaoByIds(ids);
}
@ -164,7 +200,7 @@ public class DcBusiTargetAdjustDayMasterService extends ServiceImpl<DcBusiTarget
DcBusiTargetAdjustDayMasterDao dcBusiTargetAdjustDayMasterDao = new DcBusiTargetAdjustDayMasterDao();
dcBusiTargetAdjustDayMasterDao.setId(id);
dcBusiTargetAdjustDayMasterDao.setCheckStauts(DcBusiTargetAdjustDayMasterDao.CHECK_STATUS_CHECKED);
return this.updateDcBusiTargetAdjustDayMasterDao(dcBusiTargetAdjustDayMasterDao);
return baseMapper.updateDcBusiTargetAdjustDayMasterDao(dcBusiTargetAdjustDayMasterDao);
}
/**
@ -198,7 +234,7 @@ public class DcBusiTargetAdjustDayMasterService extends ServiceImpl<DcBusiTarget
dcBusiTargetDraftDay.setOrgId(dcBusiTargetAdjustDayMasterDao.getOragnizeId());
dcBusiTargetDraftDay.setAssetCode(dcBusiTargetAdjustDayMasterDao.getAssetCode());
dcBusiTargetDraftDay.setFieldCode(dcBusiTargetAdjustDayMasterDao.getFieldCode());
dcBusiTargetDraftDay.setTargetCode(dcBusiTargetDraftDay.getTargetCode());
dcBusiTargetDraftDay.setTargetCode(dcBusiTargetAdjustDaySubDao.getTargetCode());
List<DcBusiTargetDraftDay> dcBusiTargetDraftDayList = dcBusiTargetDraftDayMapper.selectDcBusiTargetDraftDayList(dcBusiTargetDraftDay);
// 如果未查询出来指标数据底稿数据,就新增,否则修改
if (CollectionUtils.isEmpty(dcBusiTargetDraftDayList)) {
@ -224,7 +260,7 @@ public class DcBusiTargetAdjustDayMasterService extends ServiceImpl<DcBusiTarget
}
// 修改审核状态为已处理
dcBusiTargetAdjustDayMasterDao.setCheckStauts(DcBusiTargetAdjustDayMasterDao.CHECK_STATUS_PROCESSED);
return this.updateDcBusiTargetAdjustDayMasterDao(dcBusiTargetAdjustDayMasterDao);
return baseMapper.updateDcBusiTargetAdjustDayMasterDao(dcBusiTargetAdjustDayMasterDao);
} catch (RuntimeException e) {
log.error("处理异常", e);
throw e;

6
lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiTargetAdjustDaySubService.java

@ -53,13 +53,13 @@ public class DcBusiTargetAdjustDaySubService extends ServiceImpl<DcBusiTargetAdj
* 新增统计单元指标调整单子()
*
* @param dcBusiTargetAdjustDaySubDao 统计单元指标调整单子()
* @param assetId 资产ID
* @param assetCode 统计单元编码
* @return 结果
*/
@Transactional(rollbackFor = Exception.class)
public int insertDcBusiTargetAdjustDaySubDao(DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao, String assetId)
public int insertDcBusiTargetAdjustDaySubDao(DcBusiTargetAdjustDaySubDao dcBusiTargetAdjustDaySubDao, String assetCode)
{
DcBaseAssetTargetDao dcBaseAssetTargetDao = dcBaseAssetTargetMapper.selectDcBaseAssetTargetDaoByTargetCodeAndAssetId(dcBusiTargetAdjustDaySubDao.getTargetCode(), assetId);
DcBaseAssetTargetDao dcBaseAssetTargetDao = dcBaseAssetTargetMapper.selectDcBaseAssetTargetDaoByTargetCodeAndAssetCode(dcBusiTargetAdjustDaySubDao.getTargetCode(), assetCode);
if (ObjectUtils.isNotEmpty(dcBaseAssetTargetDao)) {
dcBusiTargetAdjustDaySubDao.setTargetName(dcBaseAssetTargetDao.getTargetName());
}

8
lzbi-module/src/main/java/com/lzbi/special/mapper/DcBaseWorkSpecialMapper.java

@ -24,14 +24,6 @@ public interface DcBaseWorkSpecialMapper extends BaseMapper<DcBaseWorkSpecial>
public DcBaseWorkSpecial selectDcBaseWorkSpecialById(Long id);
public DcBaseWorkSpecial selectDcBaseWorkSpecialByCode(String specialCode);
/**
* 查询生产专业管理
*
* @param specialCode 专业编码
* @return 生产专业管理
*/
public DcBaseWorkSpecial selectDcBaseWorkSpecialBySpecialCode(String specialCode);
/**
* 查询生产专业管理列表
*

5
lzbi-module/src/main/java/com/lzbi/targetFolder/mapper/DcBaseAssetTargetMapper.java

@ -4,6 +4,7 @@ import java.util.List;
import com.lzbi.targetFolder.domain.DcBaseAssetTargetDao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 资产指标配置Mapper接口
@ -26,10 +27,10 @@ public interface DcBaseAssetTargetMapper extends BaseMapper<DcBaseAssetTargetDao
* 查询资产指标配置
*
* @param targetCode 指标编码
* @param assetId 统计单元ID
* @param assetCode 统计单元编码
* @return 资产指标配置
*/
public DcBaseAssetTargetDao selectDcBaseAssetTargetDaoByTargetCodeAndAssetId(String targetCode, String assetId);
public DcBaseAssetTargetDao selectDcBaseAssetTargetDaoByTargetCodeAndAssetCode(@Param("targetCode") String targetCode, @Param("assetCode") String assetCode);
/**
* 查询资产指标配置列表

2
lzbi-module/src/main/resources/mapper/asset/DcBusiTargetAdjustDayMasterMapper.xml

@ -59,7 +59,7 @@
resultMap="DcBusiTargetAdjustDayMasterResult">
<include refid="selectDcBusiTargetAdjustDayMasterVo"/>
<where>
<if test="billSerial != null and billSerial != ''">and bill_serial = #{billSerial}</if>
<if test="billSerial != null and billSerial != ''">and INSTR(bill_serial, #{billSerial}) > 0 </if>
<if test="biilType != null and biilType != ''">and biil_type = #{biilType}</if>
<if test="companyId != null ">and company_id = #{companyId}</if>
<if test="companyName != null and companyName != ''">and company_name like concat('%', #{companyName},

20
lzbi-module/src/main/resources/mapper/asset/DcBusiTargetAdjustDaySubMapper.xml

@ -119,10 +119,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
delete from dc_busi_target_adjust_day_sub where id = #{id}
</delete>
<delete id="deleteDcBusiTargetAdjustDaySubDaoByBillNoMaster" parameterType="String">
delete from dc_busi_target_adjust_day_sub where bill_no_master = #{billNoMaster}
</delete>
<delete id="deleteDcBusiTargetAdjustDaySubDaoByIds" parameterType="String">
delete from dc_busi_target_adjust_day_sub where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<delete id="deleteDcBusiTargetAdjustDaySubDaoByMasterIds" parameterType="String">
delete from dc_busi_target_adjust_day_sub where bill_no_master in (
SELECT
bill_serial
FROM
dc_busi_target_adjust_day_master
WHERE
id IN
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
)
</delete>
</mapper>

4
lzbi-module/src/main/resources/mapper/targetFolder/DcBaseAssetTargetMapper.xml

@ -51,9 +51,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id}
</select>
<select id="selectDcBaseAssetTargetDaoByTargetCodeAndAssetId" parameterType="String" resultMap="DcBaseAssetTargetResult">
<select id="selectDcBaseAssetTargetDaoByTargetCodeAndAssetCode" resultMap="DcBaseAssetTargetResult">
<include refid="selectDcBaseAssetTargetVo"/>
where target_code = #{targetCode} and asset_id = #{assetId}
where target_code = #{targetCode} and asset_code = #{assetCode}
</select>
<insert id="insertDcBaseAssetTargetDao" parameterType="DcBaseAssetTargetDao" useGeneratedKeys="true" keyProperty="id">

Loading…
Cancel
Save