领量管理
This commit is contained in:
parent
412b095e8f
commit
c63a3cf187
|
|
@ -86,8 +86,8 @@ public class AgreementInfoController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "协议管理-删除")
|
@ApiOperation(value = "协议管理-删除")
|
||||||
@PostMapping("/remove")
|
@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 update(AgreementInfo bean);
|
||||||
|
|
||||||
int deleteByIds(String id);
|
int deleteByIds(AgreementInfo bean);
|
||||||
|
|
||||||
AgreementInfo getAgreementInfoId(AgreementInfo bean);
|
AgreementInfo getAgreementInfoId(AgreementInfo bean);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ public interface AgreementInfoService {
|
||||||
|
|
||||||
int update(AgreementInfo bean);
|
int update(AgreementInfo bean);
|
||||||
|
|
||||||
int deleteByIds(String id);
|
int deleteByIds(AgreementInfo bean);
|
||||||
|
|
||||||
AgreementInfo getAgreementInfoId(AgreementInfo bean);
|
AgreementInfo getAgreementInfoId(AgreementInfo bean);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,8 @@ public class AgreementInfoServiceImpl implements AgreementInfoService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int deleteByIds(String id) {
|
public int deleteByIds(AgreementInfo bean) {
|
||||||
return agreementInfoMapper.deleteByIds(id);
|
return agreementInfoMapper.deleteByIds(bean);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<update id="deleteByIds">
|
<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>
|
</update>
|
||||||
|
|
||||||
<select id="getAgreementInfoAll" resultType="com.bonus.sgzb.material.domain.AgreementInfo">
|
<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
|
FROM bm_agreement_info bai
|
||||||
LEFT JOIN bm_project_lot bp ON bp.lot_id = bai.project_id
|
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
|
LEFT JOIN bm_unit_info bui ON bui.unit_id = bai.unit_id
|
||||||
|
where bai.status = '1'
|
||||||
<where>
|
|
||||||
<if test="keyWord != null and keyWord != ''">
|
<if test="keyWord != null and keyWord != ''">
|
||||||
and bai.contract_code like concat('%', #{keyWord}, '%')
|
and bai.contract_code like concat('%', #{keyWord}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -118,7 +117,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="projectId != null and projectId != ''">
|
<if test="projectId != null and projectId != ''">
|
||||||
and bp.lot_id = #{projectId}
|
and bp.lot_id = #{projectId}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getUnitList" resultType="com.bonus.sgzb.material.domain.AgreementInfo">
|
<select id="getUnitList" resultType="com.bonus.sgzb.material.domain.AgreementInfo">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue