提交 4dcca336 编写于 作者: M megagao

修改了文件

上级 a263b039
......@@ -62,6 +62,20 @@ public class OrderController {
return result;
}
@RequestMapping(value="/update_all")
@ResponseBody
private CustomResult updateAll(COrderPO cOrder) throws Exception {
CustomResult result = orderService.updateAll(cOrder);
return result;
}
@RequestMapping(value="/update_note")
@ResponseBody
private CustomResult updateNote(COrderPO cOrder) throws Exception {
CustomResult result = orderService.updateNote(cOrder);
return result;
}
@RequestMapping(value="/delete")
@ResponseBody
private CustomResult delete(String id) throws Exception {
......
......@@ -16,6 +16,8 @@ public interface COrderMapper {
int changeStatus(String[] ids);
int updateNote(COrderPO cOrder);
//自动生成的mapper接口方法
int countByExample(COrderExample example);
......
......@@ -87,6 +87,14 @@
</foreach>
</update>
<!-- 修改备注-->
<update id="updateNote" parameterType="org.hqu.production_ms.domain.COrder" >
UPDATE c_order
SET note = #{note}
WHERE
order_id = #{orderId,jdbcType=VARCHAR}
</update>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册