领量管理
This commit is contained in:
parent
412b095e8f
commit
c63a3cf187
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public interface AgreementInfoMapper {
|
|||
|
||||
int update(AgreementInfo bean);
|
||||
|
||||
int deleteByIds(String id);
|
||||
int deleteByIds(AgreementInfo bean);
|
||||
|
||||
AgreementInfo getAgreementInfoId(AgreementInfo bean);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ public interface AgreementInfoService {
|
|||
|
||||
int update(AgreementInfo bean);
|
||||
|
||||
int deleteByIds(String id);
|
||||
int deleteByIds(AgreementInfo bean);
|
||||
|
||||
AgreementInfo getAgreementInfoId(AgreementInfo bean);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,22 +103,20 @@ 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 bai.status = '1'
|
||||
<if test="keyWord != null and keyWord != ''">
|
||||
and bai.contract_code like concat('%', #{keyWord}, '%')
|
||||
</if>
|
||||
|
||||
<where>
|
||||
<if test="keyWord != null and keyWord != ''">
|
||||
and bai.contract_code like concat('%', #{keyWord}, '%')
|
||||
</if>
|
||||
|
||||
<if test="agreementCode != null and agreementCode != ''">
|
||||
and bai.agreement_code like concat('%', #{agreementCode}, '%')
|
||||
</if>
|
||||
<if test="unitId != null and unitId != ''">
|
||||
and bui.unit_id = #{unitId}
|
||||
</if>
|
||||
<if test="projectId != null and projectId != ''">
|
||||
and bp.lot_id = #{projectId}
|
||||
</if>
|
||||
</where>
|
||||
<if test="agreementCode != null and agreementCode != ''">
|
||||
and bai.agreement_code like concat('%', #{agreementCode}, '%')
|
||||
</if>
|
||||
<if test="unitId != null and unitId != ''">
|
||||
and bui.unit_id = #{unitId}
|
||||
</if>
|
||||
<if test="projectId != null and projectId != ''">
|
||||
and bp.lot_id = #{projectId}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="getUnitList" resultType="com.bonus.sgzb.material.domain.AgreementInfo">
|
||||
|
|
|
|||
Loading…
Reference in New Issue