bug修改
This commit is contained in:
parent
3ab59fae25
commit
fcb195e1f4
|
|
@ -89,10 +89,12 @@ public class CookMaterialServiceImpl implements ICookMaterialService {
|
||||||
throw new ServiceException("请选择营养信息名称");
|
throw new ServiceException("请选择营养信息名称");
|
||||||
}
|
}
|
||||||
if (cookMaterialMapper.checkIsExistByCode(cookMaterial.getMaterialCode(), null, cookMaterial.getGoodsType()) > 0) {
|
if (cookMaterialMapper.checkIsExistByCode(cookMaterial.getMaterialCode(), null, cookMaterial.getGoodsType()) > 0) {
|
||||||
throw new ServiceException("该原料编码已存在");
|
String name = cookMaterial.getGoodsType() == 1 ? "原料" : "商品";
|
||||||
|
throw new ServiceException("该" + name + "编码已存在");
|
||||||
}
|
}
|
||||||
if (cookMaterialMapper.checkIsExistByName(cookMaterial.getMaterialName(), null, cookMaterial.getGoodsType()) > 0) {
|
if (cookMaterialMapper.checkIsExistByName(cookMaterial.getMaterialName(), null, cookMaterial.getGoodsType()) > 0) {
|
||||||
throw new ServiceException("该原料名称已存在");
|
String name = cookMaterial.getGoodsType() == 1 ? "原料" : "商品";
|
||||||
|
throw new ServiceException("该" + name + "名称已存在");
|
||||||
}
|
}
|
||||||
cookMaterial.setSalePrice(Objects.isNull(cookMaterial.getSalePrice()) ? 0L : cookMaterial.getSalePrice() * 100);
|
cookMaterial.setSalePrice(Objects.isNull(cookMaterial.getSalePrice()) ? 0L : cookMaterial.getSalePrice() * 100);
|
||||||
cookMaterial.setUnitPrice(Objects.isNull(cookMaterial.getUnitPrice()) ? 0L : cookMaterial.getUnitPrice() * 100);
|
cookMaterial.setUnitPrice(Objects.isNull(cookMaterial.getUnitPrice()) ? 0L : cookMaterial.getUnitPrice() * 100);
|
||||||
|
|
@ -128,10 +130,12 @@ public class CookMaterialServiceImpl implements ICookMaterialService {
|
||||||
throw new ServiceException("请选择营养信息名称");
|
throw new ServiceException("请选择营养信息名称");
|
||||||
}
|
}
|
||||||
if (cookMaterialMapper.checkIsExistByCode(cookMaterial.getMaterialCode(), cookMaterial.getMaterialId(), cookMaterial.getGoodsType()) > 0) {
|
if (cookMaterialMapper.checkIsExistByCode(cookMaterial.getMaterialCode(), cookMaterial.getMaterialId(), cookMaterial.getGoodsType()) > 0) {
|
||||||
throw new ServiceException("该原料编码已存在");
|
String name = cookMaterial.getGoodsType() == 1 ? "原料" : "商品";
|
||||||
|
throw new ServiceException("该" + name + "编码已存在");
|
||||||
}
|
}
|
||||||
if (cookMaterialMapper.checkIsExistByName(cookMaterial.getMaterialName(), cookMaterial.getMaterialId(), cookMaterial.getGoodsType()) > 0) {
|
if (cookMaterialMapper.checkIsExistByName(cookMaterial.getMaterialName(), cookMaterial.getMaterialId(), cookMaterial.getGoodsType()) > 0) {
|
||||||
throw new ServiceException("该原料名称已存在");
|
String name = cookMaterial.getGoodsType() == 1 ? "原料" : "商品";
|
||||||
|
throw new ServiceException("该" + name + "名称已存在");
|
||||||
}
|
}
|
||||||
cookMaterial.setSalePrice(Objects.isNull(cookMaterial.getSalePrice()) ? 0L : cookMaterial.getSalePrice() * 100);
|
cookMaterial.setSalePrice(Objects.isNull(cookMaterial.getSalePrice()) ? 0L : cookMaterial.getSalePrice() * 100);
|
||||||
cookMaterial.setUnitPrice(Objects.isNull(cookMaterial.getUnitPrice()) ? 0L : cookMaterial.getUnitPrice() * 100);
|
cookMaterial.setUnitPrice(Objects.isNull(cookMaterial.getUnitPrice()) ? 0L : cookMaterial.getUnitPrice() * 100);
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@ import lombok.ToString;
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@ToString
|
@ToString
|
||||||
public class BodyMeasurement {
|
public class BodyMeasurement {
|
||||||
|
private String phone;
|
||||||
|
private String userCode;
|
||||||
private String machineId;
|
private String machineId;
|
||||||
private String userId;
|
private String userId;
|
||||||
private String sex;
|
private String sex;
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,9 @@ public class HealthMachineController extends BaseController {
|
||||||
//从数据库查询是否存在当前手机
|
//从数据库查询是否存在当前手机
|
||||||
dto.setPhoneNumber(SM4EncryptUtils.sm4Encrypt(dto.getPhoneNumber()));
|
dto.setPhoneNumber(SM4EncryptUtils.sm4Encrypt(dto.getPhoneNumber()));
|
||||||
UserData userData = healthMachineMapper.checkIsExistCurrentUser(dto);
|
UserData userData = healthMachineMapper.checkIsExistCurrentUser(dto);
|
||||||
|
if (userData == null){
|
||||||
|
userData = healthMachineMapper.checkIsExistCurrentSysUser(dto);;
|
||||||
|
}
|
||||||
if (userData == null){
|
if (userData == null){
|
||||||
userData = new UserData("-1","外部人员","man","",18,true);
|
userData = new UserData("-1","外部人员","man","",18,true);
|
||||||
}
|
}
|
||||||
|
|
@ -49,6 +52,13 @@ public class HealthMachineController extends BaseController {
|
||||||
if (MINUS_ONE.equals(dto.getUserId())){
|
if (MINUS_ONE.equals(dto.getUserId())){
|
||||||
return JSON.toJSONString(BodyResponse.success());
|
return JSON.toJSONString(BodyResponse.success());
|
||||||
}
|
}
|
||||||
|
//查询用户编码和手机号
|
||||||
|
BodyMeasurement user = healthMachineMapper.selectUserById(dto.getUserId());
|
||||||
|
if (user == null){
|
||||||
|
user = healthMachineMapper.selectSysUserById(dto.getUserId());
|
||||||
|
}
|
||||||
|
dto.setPhone(user.getPhone());
|
||||||
|
dto.setUserCode(user.getUserCode());
|
||||||
healthMachineMapper.addPhysicalExaminationData(dto);
|
healthMachineMapper.addPhysicalExaminationData(dto);
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
return JSON.toJSONString(BodyResponse.fail("上传数据失败",500,"上传数据失败"));
|
return JSON.toJSONString(BodyResponse.fail("上传数据失败",500,"上传数据失败"));
|
||||||
|
|
|
||||||
|
|
@ -21,4 +21,10 @@ public interface HealthMachineMapper {
|
||||||
* @param dto 入参
|
* @param dto 入参
|
||||||
*/
|
*/
|
||||||
void addPhysicalExaminationData(@Param("dto") BodyMeasurement dto);
|
void addPhysicalExaminationData(@Param("dto") BodyMeasurement dto);
|
||||||
|
|
||||||
|
BodyMeasurement selectUserById(String userId);
|
||||||
|
|
||||||
|
UserData checkIsExistCurrentSysUser(UserDTO dto);
|
||||||
|
|
||||||
|
BodyMeasurement selectSysUserById(String userId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -127,4 +127,13 @@ public class PurchaseContractController extends BaseController {
|
||||||
public AjaxResult remove(@PathVariable Long[] contractIds) {
|
public AjaxResult remove(@PathVariable Long[] contractIds) {
|
||||||
return toAjax(purchaseContractService.deletePurchaseContractByContractIds(contractIds));
|
return toAjax(purchaseContractService.deletePurchaseContractByContractIds(contractIds));
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 作废采购合同主
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "作废采购合同")
|
||||||
|
@SysLog(title = "采购合同主", businessType = OperaType.DELETE, logType = 1,module = "采购合同->作废采购合同主")
|
||||||
|
@PostMapping("/nullify/{contractIds}")
|
||||||
|
public AjaxResult nullify(@PathVariable Long[] contractIds) {
|
||||||
|
return toAjax(purchaseContractService.nullifyPurchaseContractByContractIds(contractIds));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -155,5 +155,13 @@ public class PurchasePlan extends BaseEntity {
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private LocalDateTime endDateTime;
|
private LocalDateTime endDateTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("合同开始时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private String startTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("合同结束时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private String endTime;
|
||||||
|
|
||||||
private List<PurchasePlanDetail> purchasePlanDetailList;
|
private List<PurchasePlanDetail> purchasePlanDetailList;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ public class OrderGoodsQuery implements Serializable {
|
||||||
@ApiModelProperty(value = "是否全部入库 1是2否")
|
@ApiModelProperty(value = "是否全部入库 1是2否")
|
||||||
private String isIntoInventory;
|
private String isIntoInventory;
|
||||||
|
|
||||||
private String warehouseId;
|
private Long warehouseId;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -47,10 +47,17 @@ public class PurchasePlanQuery implements Serializable {
|
||||||
|
|
||||||
@ApiModelProperty("开始时间")
|
@ApiModelProperty("开始时间")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private LocalDateTime startDateTime;
|
private String startDateTime;
|
||||||
|
|
||||||
@ApiModelProperty("结束时间")
|
@ApiModelProperty("结束时间")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private LocalDateTime endDateTime;
|
private String endDateTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("合同开始时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private String startTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("合同结束时间")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private String endTime;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -58,4 +58,12 @@ public interface PurchaseContractMapper {
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deletePurchaseContractByContractIds(Long[] contractIds);
|
public int deletePurchaseContractByContractIds(Long[] contractIds);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 作废采购合同
|
||||||
|
*
|
||||||
|
* @param contractIds 需要作废的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int nullifyPurchaseContractByContractId(Long[] contractIds);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,4 +60,12 @@ public interface IPurchaseContractService {
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deletePurchaseContractByContractId(Long contractId);
|
public int deletePurchaseContractByContractId(Long contractId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 作废采购合同
|
||||||
|
*
|
||||||
|
* @param contractIds 需要作废的采购合同主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int nullifyPurchaseContractByContractIds(Long[] contractIds);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,7 @@ public class ImsOutInventoryServiceImpl implements IImsOutInventoryService
|
||||||
imsOutInventory.setOutCode(imsOutInventoryVO.getOutCode());
|
imsOutInventory.setOutCode(imsOutInventoryVO.getOutCode());
|
||||||
imsOutInventoryMapper.deleteImsOutInventoryDetailByOutId(imsOutInventory.getOutId());
|
imsOutInventoryMapper.deleteImsOutInventoryDetailByOutId(imsOutInventory.getOutId());
|
||||||
insertImsOutInventoryDetail(imsOutInventoryUpdate.getImsOutInventoryDetailAddList(), imsOutInventory);
|
insertImsOutInventoryDetail(imsOutInventoryUpdate.getImsOutInventoryDetailAddList(), imsOutInventory);
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,9 @@ public class PurchaseContractServiceImpl implements IPurchaseContractService {
|
||||||
if (PurchaseContractStatusEnum.END.getKey().equals(contract.getContractStatus())) {
|
if (PurchaseContractStatusEnum.END.getKey().equals(contract.getContractStatus())) {
|
||||||
contract.setContractStatus(PurchaseContractStatusEnum.END.getKey());
|
contract.setContractStatus(PurchaseContractStatusEnum.END.getKey());
|
||||||
}else {
|
}else {
|
||||||
|
if (contract.getCommitStatus() == 1){
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(!LocalDateTime.now().isBefore(contract.getContractStartTime())
|
if(!LocalDateTime.now().isBefore(contract.getContractStartTime())
|
||||||
&& !LocalDateTime.now().isAfter(contract.getContractEndTime())) {
|
&& !LocalDateTime.now().isAfter(contract.getContractEndTime())) {
|
||||||
contract.setContractStatus(PurchaseContractStatusEnum.TAKE_EFFECT.getKey());
|
contract.setContractStatus(PurchaseContractStatusEnum.TAKE_EFFECT.getKey());
|
||||||
|
|
@ -208,4 +211,15 @@ public class PurchaseContractServiceImpl implements IPurchaseContractService {
|
||||||
inspectGoodsDetailService.deletePurchaseContractDetailByContractId(contractId);
|
inspectGoodsDetailService.deletePurchaseContractDetailByContractId(contractId);
|
||||||
return purchaseContractMapper.deletePurchaseContractByContractId(contractId);
|
return purchaseContractMapper.deletePurchaseContractByContractId(contractId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 作废采购合同
|
||||||
|
*
|
||||||
|
* @param contractIds 需要作废的采购合同主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int nullifyPurchaseContractByContractIds(Long[] contractIds) {
|
||||||
|
return purchaseContractMapper.nullifyPurchaseContractByContractId(contractIds);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
'' as avatar
|
'' as avatar
|
||||||
from kitchen_staff_info
|
from kitchen_staff_info
|
||||||
where mobile = #{phoneNumber}
|
where mobile = #{phoneNumber}
|
||||||
|
limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="addPhysicalExaminationData">
|
<insert id="addPhysicalExaminationData">
|
||||||
|
|
@ -20,4 +21,33 @@
|
||||||
values (#{dto.userId},#{dto.machineId},#{dto.sex},#{dto.age},#{dto.height},#{dto.weight},#{dto.bmi},#{dto.bodyFat},#{dto.muscle},#{dto.boneMass},#{dto.waterContent},#{dto.extwater},#{dto.protein}
|
values (#{dto.userId},#{dto.machineId},#{dto.sex},#{dto.age},#{dto.height},#{dto.weight},#{dto.bmi},#{dto.bodyFat},#{dto.muscle},#{dto.boneMass},#{dto.waterContent},#{dto.extwater},#{dto.protein}
|
||||||
,#{dto.metabolism},#{dto.fatLevel},#{dto.bodyAge})
|
,#{dto.metabolism},#{dto.fatLevel},#{dto.bodyAge})
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
<select id="selectUserById" resultType="com.bonus.canteen.core.healthmachine.bean.BodyMeasurement">
|
||||||
|
select
|
||||||
|
staff_id as userId,
|
||||||
|
staff_no as userCode
|
||||||
|
from kitchen_staff_info
|
||||||
|
where staff_id = #{userId}
|
||||||
|
limit 1
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="checkIsExistCurrentSysUser" resultType="com.bonus.canteen.core.healthmachine.bean.UserData">
|
||||||
|
select user_id as userId,
|
||||||
|
user_name as nickName,
|
||||||
|
case when sex = 0 then 'man' when sex = 1 then 'women' else '' end as sex,
|
||||||
|
0 as age,
|
||||||
|
'' as avatar
|
||||||
|
from sys_user
|
||||||
|
where phonenumber = #{phoneNumber} and del_flag = 0
|
||||||
|
limit 1
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectSysUserById" resultType="com.bonus.canteen.core.healthmachine.bean.BodyMeasurement">
|
||||||
|
select
|
||||||
|
user_id as userId,
|
||||||
|
user_code as userCode
|
||||||
|
from sys_user
|
||||||
|
where user_id = #{userId} and del_flag = 0
|
||||||
|
limit 1
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
@ -21,6 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<result property="approveRemark" column="approve_remark" />
|
<result property="approveRemark" column="approve_remark" />
|
||||||
<result property="totalNum" column="total_num" />
|
<result property="totalNum" column="total_num" />
|
||||||
<result property="totalIntoNum" column="total_into_num" />
|
<result property="totalIntoNum" column="total_into_num" />
|
||||||
|
<result property="totalQualifiedNum" column="total_qualified_num" />
|
||||||
<result property="approveTime" column="approve_time" />
|
<result property="approveTime" column="approve_time" />
|
||||||
<result property="stallId" column="stall_id" />
|
<result property="stallId" column="stall_id" />
|
||||||
<result property="canteenId" column="canteen_id" />
|
<result property="canteenId" column="canteen_id" />
|
||||||
|
|
@ -51,7 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
iog.create_time, iog.update_by, iog.update_time, isr.supplier_name, iwi.warehouse_name,
|
iog.create_time, iog.update_by, iog.update_time, isr.supplier_name, iwi.warehouse_name,
|
||||||
ba.area_name, bc.canteen_name, bs.stall_name, contract_code, iogps.pay_money_date,
|
ba.area_name, bc.canteen_name, bs.stall_name, contract_code, iogps.pay_money_date,
|
||||||
iogps.pay_money_style, iogps.collect_money_account, iogps.collect_money_account_name,
|
iogps.pay_money_style, iogps.collect_money_account, iogps.collect_money_account_name,
|
||||||
iogps.collect_money_bank, iog.supplier_id, iog.warehouse_id
|
iogps.collect_money_bank, iog.supplier_id, iog.warehouse_id,IFNULL(iig.delivery_total_num,0) as total_qualified_num
|
||||||
from ims_order_goods iog
|
from ims_order_goods iog
|
||||||
left join ims_order_goods_pay_style iogps on iogps.order_goods_id = iog.order_goods_code
|
left join ims_order_goods_pay_style iogps on iogps.order_goods_id = iog.order_goods_code
|
||||||
left join ims_supplier isr on isr.supplier_id = iog.supplier_id
|
left join ims_supplier isr on isr.supplier_id = iog.supplier_id
|
||||||
|
|
@ -59,19 +60,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
left join basic_area ba on ba.area_id = iog.area_id
|
left join basic_area ba on ba.area_id = iog.area_id
|
||||||
left join basic_canteen bc on bc.canteen_id = iog.canteen_id
|
left join basic_canteen bc on bc.canteen_id = iog.canteen_id
|
||||||
left join basic_stall bs on bs.stall_id = iog.stall_id
|
left join basic_stall bs on bs.stall_id = iog.stall_id
|
||||||
|
left join(
|
||||||
|
SELECT
|
||||||
|
relate_order_goods_id,status,sum(delivery_total_num) as delivery_total_num
|
||||||
|
from
|
||||||
|
ims_inspect_goods where `status` = 2
|
||||||
|
GROUP BY relate_order_goods_id
|
||||||
|
)iig on iig.relate_order_goods_id = iog.order_goods_code
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectOrderGoodsList" parameterType="com.bonus.canteen.core.ims.domain.OrderGoods" resultMap="OrderGoodsResult">
|
<select id="selectOrderGoodsList" parameterType="com.bonus.canteen.core.ims.domain.OrderGoods" resultMap="OrderGoodsResult">
|
||||||
<include refid="selectOrderGoodsVo"/>
|
<include refid="selectOrderGoodsVo"/>
|
||||||
<where>
|
<where>
|
||||||
iog.del_flag = '0'
|
iog.del_flag = '0'
|
||||||
<if test="isInspect != null and isInspect != '' ">
|
<if test="isInspect != null and isInspect != '' and isInspect != 0 and isInspect != '0'.toString()">
|
||||||
and iog.if_all_inspect = #{isInspect}
|
and iog.if_all_inspect = #{isInspect}
|
||||||
</if>
|
</if>
|
||||||
<if test="ifAllInto != null and ifAllInto != '' ">
|
<if test="ifAllInto != null and ifAllInto != '' ">
|
||||||
and iog.if_all_into = #{ifAllInto}
|
and iog.if_all_into = #{ifAllInto}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="isInspect == 0 || isInspect == '0'.toString()">
|
||||||
|
and iig.delivery_total_num > 0
|
||||||
|
</if>
|
||||||
<if test="supplierId != null "> and iog.supplier_id = #{supplierId}</if>
|
<if test="supplierId != null "> and iog.supplier_id = #{supplierId}</if>
|
||||||
<if test="orderStatus != null "> and iog.order_status = #{orderStatus}</if>
|
<if test="orderStatus != null "> and iog.order_status = #{orderStatus}</if>
|
||||||
<if test="orderAmount != null "> and iog.order_amount = #{orderAmount}</if>
|
<if test="orderAmount != null "> and iog.order_amount = #{orderAmount}</if>
|
||||||
|
|
|
||||||
|
|
@ -246,4 +246,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
#{contractId}
|
#{contractId}
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
<delete id="nullifyPurchaseContractByContractId" parameterType="String">
|
||||||
|
update ims_purchase_contract set contract_status = '4' where contract_id in
|
||||||
|
<foreach item="contractId" collection="array" open="(" separator="," close=")">
|
||||||
|
#{contractId}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
@ -76,6 +76,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="endDateTime != null">
|
<if test="endDateTime != null">
|
||||||
and ipp.purchase_date <![CDATA[ <= ]]> #{endDateTime}
|
and ipp.purchase_date <![CDATA[ <= ]]> #{endDateTime}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="startTime != null and startTime != ''">
|
||||||
|
and ipp.purchase_date <![CDATA[ >= ]]> #{startTime}
|
||||||
|
</if>
|
||||||
|
<if test="endTime != null and endTime != ''">
|
||||||
|
and ipp.purchase_date <![CDATA[ <= ]]> #{endTime}
|
||||||
|
</if>
|
||||||
<if test="planCodeList != null and planCodeList.size() > 0">
|
<if test="planCodeList != null and planCodeList.size() > 0">
|
||||||
and ipp.plan_code in
|
and ipp.plan_code in
|
||||||
<foreach collection="planCodeList" item="planCode" separator="," open="(" close=")">
|
<foreach collection="planCodeList" item="planCode" separator="," open="(" close=")">
|
||||||
|
|
|
||||||
|
|
@ -409,6 +409,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
|
<!-- SELECT-->
|
||||||
|
<!-- a.supplier_code,-->
|
||||||
|
<!-- a.supplier_id,-->
|
||||||
|
<!-- a.supplier_name,-->
|
||||||
|
<!-- a.area_id,-->
|
||||||
|
<!-- aa.area_name,-->
|
||||||
|
<!-- sum(IF(iis.bid_status = '3',1,0)) as bidNumbers,-->
|
||||||
|
<!-- sum(IF(iis.bid_status = '3',iis.quote_amount,0)) as cumulativeBidAmount,-->
|
||||||
|
<!-- IFNULL(sum(IF(iis.bid_status = '3',1,0)) / COUNT(iis.inquiry_supplier_id) * 100,0) as deliveryPassRate,-->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- FROM-->
|
||||||
|
<!-- ims_supplier a-->
|
||||||
|
<!-- LEFT JOIN basic_area aa on a.area_id = aa.area_id-->
|
||||||
|
<!-- left join ims_inquiry_supplier iis on iis.inquiry_supplier_id = a.supplier_id-->
|
||||||
|
|
||||||
|
<!-- WHERE-->
|
||||||
|
<!-- a.del_flag = 0-->
|
||||||
|
<!-- GROUP BY a.supplier_id-->
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectSupplier" resultType="com.bonus.canteen.core.ims.vo.SupplierScoreVO">
|
<select id="selectSupplier" resultType="com.bonus.canteen.core.ims.vo.SupplierScoreVO">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue