领量管理

This commit is contained in:
gmhao 2023-12-19 09:44:55 +08:00
parent 412b095e8f
commit c63a3cf187
5 changed files with 20 additions and 22 deletions

View File

@ -86,8 +86,8 @@ public class AgreementInfoController extends BaseController {
*/
@ApiOperation(value = "协议管理-删除")
@PostMapping("/remove")
public AjaxResult deleteByIds(String id)
public AjaxResult deleteByIds(@Validated @RequestBody AgreementInfo bean)
{
return toAjax(agreementInfoService.deleteByIds(id));
return toAjax(agreementInfoService.deleteByIds(bean));
}
}

View File

@ -24,7 +24,7 @@ public interface AgreementInfoMapper {
int update(AgreementInfo bean);
int deleteByIds(String id);
int deleteByIds(AgreementInfo bean);
AgreementInfo getAgreementInfoId(AgreementInfo bean);
}

View File

@ -19,7 +19,7 @@ public interface AgreementInfoService {
int update(AgreementInfo bean);
int deleteByIds(String id);
int deleteByIds(AgreementInfo bean);
AgreementInfo getAgreementInfoId(AgreementInfo bean);
}

View File

@ -48,8 +48,8 @@ public class AgreementInfoServiceImpl implements AgreementInfoService {
}
@Override
public int deleteByIds(String id) {
return agreementInfoMapper.deleteByIds(id);
public int deleteByIds(AgreementInfo bean) {
return agreementInfoMapper.deleteByIds(bean);
}
@Override

View File

@ -93,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<update id="deleteByIds">
UPDATE bm_agreement_info SET status = '0' WHERE agreement_id = #{id}
UPDATE bm_agreement_info SET status = '0' WHERE agreement_id = #{agreementId}
</update>
<select id="getAgreementInfoAll" resultType="com.bonus.sgzb.material.domain.AgreementInfo">
@ -103,8 +103,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM bm_agreement_info bai
LEFT JOIN bm_project_lot bp ON bp.lot_id = bai.project_id
LEFT JOIN bm_unit_info bui ON bui.unit_id = bai.unit_id
<where>
where bai.status = '1'
<if test="keyWord != null and keyWord != ''">
and bai.contract_code like concat('%', #{keyWord}, '%')
</if>
@ -118,7 +117,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="projectId != null and projectId != ''">
and bp.lot_id = #{projectId}
</if>
</where>
</select>
<select id="getUnitList" resultType="com.bonus.sgzb.material.domain.AgreementInfo">