支出合同变更修改
This commit is contained in:
+4
-3
@@ -21,6 +21,7 @@ import com.jero.common.system.base.controller.JeroController;
|
|||||||
import com.jero.common.system.vo.LoginUser;
|
import com.jero.common.system.vo.LoginUser;
|
||||||
import com.jero.common.util.DateUtils;
|
import com.jero.common.util.DateUtils;
|
||||||
import com.jero.common.util.oConvertUtils;
|
import com.jero.common.util.oConvertUtils;
|
||||||
|
import com.jero.contract.common.PayIncomeContractCommon;
|
||||||
import com.jero.contract.entity.*;
|
import com.jero.contract.entity.*;
|
||||||
import com.jero.contract.service.IPaySpendingContractAuditService;
|
import com.jero.contract.service.IPaySpendingContractAuditService;
|
||||||
import com.jero.contract.service.IPaySpendingContractInstallmentService;
|
import com.jero.contract.service.IPaySpendingContractInstallmentService;
|
||||||
@@ -317,14 +318,14 @@ public class PaySpendingContractController extends JeroController<PaySpendingCon
|
|||||||
@ApiOperation(value="支出合同-导出excel", notes="支出合同-导出excel")
|
@ApiOperation(value="支出合同-导出excel", notes="支出合同-导出excel")
|
||||||
public ModelAndView exportXls(HttpServletRequest request, PaySpendingContract paySpendingContract,
|
public ModelAndView exportXls(HttpServletRequest request, PaySpendingContract paySpendingContract,
|
||||||
@RequestParam(name="startTime",required = false) String startTime,
|
@RequestParam(name="startTime",required = false) String startTime,
|
||||||
@RequestParam(name="endTime",required = false) String endTime) {
|
@RequestParam(name="endTime",required = false) String endTime,
|
||||||
|
@RequestParam(name="chargeStatus",required = false) String chargeStatus) {
|
||||||
|
|
||||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
if(!sysUser.getRoleCode().contains(RoleCommon.CWRY)){
|
if(!sysUser.getRoleCode().contains(RoleCommon.CWRY)){
|
||||||
paySpendingContract.setPrincipalId(sysUser.getId());
|
paySpendingContract.setPrincipalId(sysUser.getId());
|
||||||
}
|
}
|
||||||
List<PaySpendingContract> pageList = paySpendingContractService.queryList(paySpendingContract.getPrincipalId(), paySpendingContract.getContractNum(),
|
List<PaySpendingContract> pageList = paySpendingContractService.queryList(paySpendingContract,startTime,endTime,chargeStatus);
|
||||||
paySpendingContract.getContractName(),startTime,endTime);
|
|
||||||
List<PaySpendingContract> exportList = null;
|
List<PaySpendingContract> exportList = null;
|
||||||
|
|
||||||
// 过滤选中数据
|
// 过滤选中数据
|
||||||
|
|||||||
+2
-3
@@ -36,8 +36,7 @@ public interface PaySpendingContractMapper extends BaseMapper<PaySpendingContrac
|
|||||||
* @Return
|
* @Return
|
||||||
* @Exception
|
* @Exception
|
||||||
*/
|
*/
|
||||||
List<PaySpendingContract> queryList(@Param("principalId") String principalId, @Param("contractNum") String contractNum,
|
List<PaySpendingContract> queryList(@Param("paySpendingContract") PaySpendingContract paySpendingContract
|
||||||
@Param("contractName") String contractName,@Param("startTime") String startTime,
|
,@Param("startTime") String startTime, @Param("endTime") String endTime,@Param("chargeStatus") String chargeStatus);
|
||||||
@Param("endTime") String endTime);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+14
-8
@@ -58,10 +58,10 @@
|
|||||||
AND principal_id = #{paySpendingContract.principalId}
|
AND principal_id = #{paySpendingContract.principalId}
|
||||||
</if>
|
</if>
|
||||||
<if test="paySpendingContract.status != null and paySpendingContract.status != ''">
|
<if test="paySpendingContract.status != null and paySpendingContract.status != ''">
|
||||||
AND aa.status = #{paySpendingContract.status}
|
AND psc.status = #{paySpendingContract.status}
|
||||||
</if>
|
</if>
|
||||||
<if test="chargeStatus != null and chargeStatus != ''">
|
<if test="chargeStatus != null and chargeStatus != ''">
|
||||||
AND aa.chargeStatus = #{chargeStatus}
|
AND psc.chargeStatus = #{chargeStatus}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
ORDER BY chargeStatus desc,create_time desc
|
ORDER BY chargeStatus desc,create_time desc
|
||||||
@@ -105,11 +105,11 @@
|
|||||||
) AS chargeStatus
|
) AS chargeStatus
|
||||||
FROM pay_spending_contract psc
|
FROM pay_spending_contract psc
|
||||||
<where>
|
<where>
|
||||||
<if test="contractNum != null and contractNum != ''">
|
<if test="paySpendingContract.contractNum != null and paySpendingContract.contractNum != ''">
|
||||||
AND contract_num LIKE CONCAT('%',CONCAT(#{contractNum},'%'))
|
AND contract_num LIKE CONCAT('%',CONCAT(#{paySpendingContract.contractNum},'%'))
|
||||||
</if>
|
</if>
|
||||||
<if test="contractName != null and contractName != ''">
|
<if test="paySpendingContract.contractName != null and paySpendingContract.contractName != ''">
|
||||||
AND contract_name LIKE CONCAT('%',CONCAT(#{contractName},'%'))
|
AND contract_name LIKE CONCAT('%',CONCAT(#{paySpendingContract.contractName},'%'))
|
||||||
</if>
|
</if>
|
||||||
<if test="startTime != null and startTime != ''">
|
<if test="startTime != null and startTime != ''">
|
||||||
AND DATE_FORMAT(create_time,'%Y-%m-%d') >= #{startTime}
|
AND DATE_FORMAT(create_time,'%Y-%m-%d') >= #{startTime}
|
||||||
@@ -117,8 +117,14 @@
|
|||||||
<if test="endTime != null and endTime != ''">
|
<if test="endTime != null and endTime != ''">
|
||||||
AND DATE_FORMAT(create_time,'%Y-%m-%d') <= #{endTime}
|
AND DATE_FORMAT(create_time,'%Y-%m-%d') <= #{endTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="principalId != null and principalId != ''">
|
<if test="paySpendingContract.principalId != null and paySpendingContract.principalId != ''">
|
||||||
AND principal_id = #{principalId}
|
AND principal_id = #{paySpendingContract.principalId}
|
||||||
|
</if>
|
||||||
|
<if test="paySpendingContract.status != null and paySpendingContract.status != ''">
|
||||||
|
AND psc.status = #{paySpendingContract.status}
|
||||||
|
</if>
|
||||||
|
<if test="chargeStatus != null and chargeStatus != ''">
|
||||||
|
AND psc.chargeStatus = #{chargeStatus}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
ORDER BY chargeStatus desc,create_time desc
|
ORDER BY chargeStatus desc,create_time desc
|
||||||
|
|||||||
+1
-1
@@ -82,7 +82,7 @@ public interface IPaySpendingContractService extends IService<PaySpendingContrac
|
|||||||
* @Return
|
* @Return
|
||||||
* @Exception
|
* @Exception
|
||||||
*/
|
*/
|
||||||
List<PaySpendingContract> queryList(String contractNum,String contractName,String startTime,String endTime);
|
List<PaySpendingContract> queryList(PaySpendingContract paySpendingContract,String startTime,String endTime,String chargeStatus);
|
||||||
/**
|
/**
|
||||||
* @Description 审核
|
* @Description 审核
|
||||||
* @Author lqt
|
* @Author lqt
|
||||||
|
|||||||
+3
-2
@@ -549,6 +549,7 @@ public class PaySpendingContractServiceImpl extends ServiceImpl<PaySpendingContr
|
|||||||
}
|
}
|
||||||
paySpendingContract.setPrincipalId(principalName.getId());
|
paySpendingContract.setPrincipalId(principalName.getId());
|
||||||
paySpendingContract.setPrincipalName(principalName.getRealname());
|
paySpendingContract.setPrincipalName(principalName.getRealname());
|
||||||
|
paySpendingContract.setStatus(PayIncomeContractCommon.STATUS2);
|
||||||
paySpendingContractService.save(paySpendingContract);
|
paySpendingContractService.save(paySpendingContract);
|
||||||
List<PaySpendingContractInstallment> listPaySpendingContractInstallment = p.getListInstallment();
|
List<PaySpendingContractInstallment> listPaySpendingContractInstallment = p.getListInstallment();
|
||||||
if(!CollectionUtils.isEmpty(listPaySpendingContractInstallment)){
|
if(!CollectionUtils.isEmpty(listPaySpendingContractInstallment)){
|
||||||
@@ -568,8 +569,8 @@ public class PaySpendingContractServiceImpl extends ServiceImpl<PaySpendingContr
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<PaySpendingContract> queryList(String principalId,String contractNum, String contractName, String startTime, String endTime) {
|
public List<PaySpendingContract> queryList(PaySpendingContract paySpendingContract,String startTime,String endTime,String chargeStatus) {
|
||||||
return paySpendingContractMapper.queryList(principalId, contractNum, contractName, startTime, endTime);
|
return paySpendingContractMapper.queryList( paySpendingContract, startTime, endTime, chargeStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user